Redefine OLED_RESET then used TX_RX_LNA

pull/1/head
US1GHQ 2021-07-04 21:22:36 +03:00
parent 218ec99234
commit 24cfb8c0bc
1 changed files with 7 additions and 2 deletions

View File

@ -213,11 +213,16 @@ uint8_t loraReceivedLength = sizeof(lora_RXBUFF);
#ifdef ESP32_DEV_V1
BG_RF95 rf95(5, 26); // For custom ESP32 and LoRa module
#else
BG_RF95 rf95(18, 26); // TTGO T-Beam has NSS @ Pin 18 and Interrupt IO @ Pin26
BG_RF95 rf95(18, 26); // TTGO T-Beam has NSS @ Pin 18 and Interrupt IO @ Pin26
#endif
// initialize OLED display
#define OLED_RESET 15 // not used
#ifdef TX_RX_LNA
#define OLED_RESET 15 // not used
#else
#define OLED_RESET 16
#endif
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RESET);
// + FUNCTIONS-----------------------------------------------------------+//