Browse Source

TEST

pull/1/head
US1GHQ 11 months ago
parent
commit
7f24761374
  1. 25
      src/TTGO_T-Beam_LoRa_APRS.ino

25
src/TTGO_T-Beam_LoRa_APRS.ino

@ -36,12 +36,19 @@
#define SSD1306_ADDRESS 0x3C
// SPI config
#define SPI_sck 18
#define SPI_miso 19
#define SPI_mosi 27
#define SPI_ss 5
#ifdef ESP32_DEV_V1
#define SPI_sck 18
#define SPI_miso 19
#define SPI_mosi 23
#define SPI_ss 5
#else
#define SPI_sck 5
#define SPI_miso 19
#define SPI_mosi 27
#define SPI_ss 18
#endif
// IO config
#ifdef T_BEAM_V1_0
#define I2C_SDA 21
#define I2C_SCL 22
@ -198,7 +205,11 @@ static const adc_unit_t unit = ADC_UNIT_1;
uint8_t loraReceivedLength = sizeof(lora_RXBUFF);
// Singleton instance of the radio driver
BG_RF95 rf95(5, 26); // TTGO T-Beam has NSS @ Pin 18 and Interrupt IO @ Pin26
#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
#endif
// initialize OLED display
#define OLED_RESET 15 // not used
@ -883,7 +894,7 @@ void loop() {
}
writedisplaytext(" ((RX))", "", loraReceivedFrameString, "", "", "");
#ifdef KISS_PROTOCOL
sendToTNC(loraReceivedFrameString);
sendToTNC(loraReceivedFrameString, rf95.lastRssi(), rf95.lastSNR());
#endif
#ifdef ENABLE_WIFI
sendToWebList(loraReceivedFrameString, rf95.lastRssi(), rf95.lastSNR());

Loading…
Cancel
Save