commit
3b0fbf36d2
@ -12,13 +12,13 @@
|
|||||||
#define HAS_LORA 1 // comment out if device shall not send data via LoRa
|
#define HAS_LORA 1 // comment out if device shall not send data via LoRa
|
||||||
#define CFG_sx1276_radio 1
|
#define CFG_sx1276_radio 1
|
||||||
#define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board
|
#define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board
|
||||||
#define HAS_LED (25) // white LED on board
|
#define HAS_LED LED_BUILTIN // white LED on board
|
||||||
#define HAS_BUTTON (0) // button "PROG" on board
|
#define HAS_BUTTON KEY_BUILTIN // button "PROG" on board
|
||||||
|
|
||||||
// Pins for I2C interface of OLED Display
|
// Pins for I2C interface of OLED Display
|
||||||
#define MY_OLED_SDA (4)
|
#define MY_OLED_SDA OLED_SDA
|
||||||
#define MY_OLED_SCL (15)
|
#define MY_OLED_SCL OLED_SCL
|
||||||
#define MY_OLED_RST (16)
|
#define MY_OLED_RST OLED_RST
|
||||||
|
|
||||||
// Pins for LORA chip SPI interface come from board file, we need some
|
// Pins for LORA chip SPI interface come from board file, we need some
|
||||||
// additional definitions for LMIC
|
// additional definitions for LMIC
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
#define CFG_sx1276_radio 1
|
#define CFG_sx1276_radio 1
|
||||||
|
|
||||||
#define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board
|
#define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board
|
||||||
#define HAS_LED (25) // white LED on board
|
#define HAS_LED LED_BUILTIN // white LED on board
|
||||||
#define HAS_BUTTON (0) // button "PROG" on board
|
#define HAS_BUTTON KEY_BUILTIN // button "PROG" on board
|
||||||
|
|
||||||
// Pins for I2C interface of OLED Display
|
// Pins for I2C interface of OLED Display
|
||||||
#define MY_OLED_SDA (4)
|
#define MY_OLED_SDA OLED_SDA
|
||||||
#define MY_OLED_SCL (15)
|
#define MY_OLED_SCL OLED_SCL
|
||||||
#define MY_OLED_RST (16)
|
#define MY_OLED_RST OLED_RST
|
||||||
|
|
||||||
// Pins for LORA chip SPI interface come from board file, we need some
|
// Pins for LORA chip SPI interface come from board file, we need some
|
||||||
// additional definitions for LMIC
|
// additional definitions for LMIC
|
||||||
|
@ -7,9 +7,8 @@
|
|||||||
|
|
||||||
// Hardware related definitions for lolin32lite (without LoRa shield)
|
// Hardware related definitions for lolin32lite (without LoRa shield)
|
||||||
|
|
||||||
#define CFG_sx1272_radio 1 // dummy
|
#define CFG_sx1272_radio 1 // dummy
|
||||||
|
#define HAS_LED LED_BUILTIN // on board LED on GPIO5
|
||||||
#define HAS_LED (5) // on board LED on GPIO5
|
#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
||||||
#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -12,22 +12,17 @@
|
|||||||
|
|
||||||
#define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board
|
#define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board
|
||||||
//#define DISPLAY_FLIP 1 // uncomment this for rotated display
|
//#define DISPLAY_FLIP 1 // uncomment this for rotated display
|
||||||
#define HAS_LED (2) // white LED on board
|
#define HAS_LED LED_BUILTIN
|
||||||
#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
||||||
#define HAS_BUTTON (0) // button "PRG" on board
|
#define HAS_BUTTON KEY_BUILTIN
|
||||||
|
|
||||||
// Pins for I2C interface of OLED Display
|
// Pins for I2C interface of OLED Display
|
||||||
#define MY_OLED_SDA (4)
|
#define MY_OLED_SDA OLED_SDA
|
||||||
#define MY_OLED_SCL (15)
|
#define MY_OLED_SCL OLED_SCL
|
||||||
#define MY_OLED_RST (16)
|
#define MY_OLED_RST OLED_RST
|
||||||
|
|
||||||
// Pins for LORA chip SPI interface, reset line and interrupt lines
|
// Pins for LORA chip SPI interface come from board file, we need some
|
||||||
#define LORA_SCK (5)
|
// additional definitions for LMIC
|
||||||
#define LORA_CS (18)
|
|
||||||
#define LORA_MISO (19)
|
|
||||||
#define LORA_MOSI (27)
|
|
||||||
#define LORA_RST (14)
|
|
||||||
#define LORA_IRQ (26)
|
|
||||||
#define LORA_IO1 (33)
|
#define LORA_IO1 (33)
|
||||||
#define LORA_IO2 LMIC_UNUSED_PIN
|
#define LORA_IO2 LMIC_UNUSED_PIN
|
||||||
|
|
||||||
|
@ -18,17 +18,13 @@
|
|||||||
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||||
|
|
||||||
// Pins for I2C interface of OLED Display
|
// Pins for I2C interface of OLED Display
|
||||||
#define MY_OLED_SDA (21)
|
#define MY_OLED_SDA OLED_SDA
|
||||||
#define MY_OLED_SCL (22)
|
#define MY_OLED_SCL OLED_SCL
|
||||||
#define MY_OLED_RST U8X8_PIN_NONE
|
#define MY_OLED_RST U8X8_PIN_NONE
|
||||||
|
|
||||||
// Pins for LORA chip SPI interface, reset line and interrupt lines
|
// Pins for LORA chip SPI interface come from board file, we need some
|
||||||
#define LORA_SCK (5)
|
// additional definitions for LMIC
|
||||||
#define LORA_CS (18)
|
|
||||||
#define LORA_MISO (19)
|
|
||||||
#define LORA_MOSI (27)
|
|
||||||
#define LORA_RST LMIC_UNUSED_PIN
|
#define LORA_RST LMIC_UNUSED_PIN
|
||||||
#define LORA_IRQ (26)
|
|
||||||
#define LORA_IO1 (33)
|
#define LORA_IO1 (33)
|
||||||
#define LORA_IO2 LMIC_UNUSED_PIN
|
#define LORA_IO2 LMIC_UNUSED_PIN
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user