File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 41
41
#include "esp32_i2c.h"
42
42
#include "hardware/esp32_gpio_sigmap.h"
43
43
44
- #include "ttgo_lora_esp32.h"
44
+ #define HAVE_SSD1306 1
45
+
46
+ #if !defined(CONFIG_ESP32_I2C ) || !defined(CONFIG_ESP32_I2C0 ) || \
47
+ !defined(CONFIG_LCD_SSD1306_I2C )
48
+ # undef HAVE_SSD1306
49
+ #endif
50
+
51
+ #define GPIO_SSD1306_RST 16
45
52
46
53
#ifdef HAVE_SSD1306
47
54
Original file line number Diff line number Diff line change 35
35
36
36
/* TTGO-LoRa-SX1276-ESP32 GPIOs *********************************************/
37
37
38
- /* OLED SSD1306 */
39
-
40
- #define HAVE_SSD1306 1
41
-
42
- #if !defined(CONFIG_ESP32_I2C ) || !defined(CONFIG_ESP32_I2C0 ) || \
43
- !defined(CONFIG_LCD_SSD1306_I2C )
44
- # undef HAVE_SSD1306
45
- #endif
46
-
47
- #define GPIO_SSD1306_RST 16
48
-
49
38
/* SX1276 pins */
50
39
51
40
#define GPIO_SX127X_RESET 23 /* RESET connected to IO23 */
You can’t perform that action at this time.
0 commit comments