esp32: macros related to SSD1306 OLED display should not be board-specific
Signed-off-by: Robert-Ionut Alexa <robertalexa2000@gmail.com>
This commit is contained in:
parent
f2530c53a5
commit
5bfedbcc60
@ -41,7 +41,14 @@
|
||||
#include "esp32_i2c.h"
|
||||
#include "hardware/esp32_gpio_sigmap.h"
|
||||
|
||||
#include "ttgo_lora_esp32.h"
|
||||
#define HAVE_SSD1306 1
|
||||
|
||||
#if !defined(CONFIG_ESP32_I2C) || !defined(CONFIG_ESP32_I2C0) || \
|
||||
!defined(CONFIG_LCD_SSD1306_I2C)
|
||||
# undef HAVE_SSD1306
|
||||
#endif
|
||||
|
||||
#define GPIO_SSD1306_RST 16
|
||||
|
||||
#ifdef HAVE_SSD1306
|
||||
|
||||
|
@ -35,17 +35,6 @@
|
||||
|
||||
/* TTGO-LoRa-SX1276-ESP32 GPIOs *********************************************/
|
||||
|
||||
/* OLED SSD1306 */
|
||||
|
||||
#define HAVE_SSD1306 1
|
||||
|
||||
#if !defined(CONFIG_ESP32_I2C) || !defined(CONFIG_ESP32_I2C0) || \
|
||||
!defined(CONFIG_LCD_SSD1306_I2C)
|
||||
# undef HAVE_SSD1306
|
||||
#endif
|
||||
|
||||
#define GPIO_SSD1306_RST 16
|
||||
|
||||
/* SX1276 pins */
|
||||
|
||||
#define GPIO_SX127X_RESET 23 /* RESET connected to IO23 */
|
||||
|
Loading…
Reference in New Issue
Block a user