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:
Robert-Ionut Alexa 2023-04-23 19:02:48 +03:00 committed by Xiang Xiao
parent f2530c53a5
commit 5bfedbcc60
2 changed files with 8 additions and 12 deletions

View File

@ -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

View File

@ -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 */