From b6a44ee8c36066179236bb7a6f701dd457a17c65 Mon Sep 17 00:00:00 2001 From: Rysiek Labus Date: Wed, 17 Feb 2021 20:26:10 +0100 Subject: [PATCH] platformio lora32 board support --- platformio.ini | 21 +++++++++++++++++---- src/TTGO_T-Beam_LoRa_APRS.ino | 2 ++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index 92878c7..9297c3b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -8,10 +8,7 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:ttgo-t-beam] -platform = espressif32 -board = ttgo-t-beam -framework = arduino +[env] monitor_speed = 115200 build_flags = -Wl,--gc-sections,--relax lib_deps = @@ -25,3 +22,19 @@ lib_deps = OneWire #DallasTemperature #adafruit/Adafruit BME280 Library@^2.1.2 + + +[env:ttgo-t-beam] +platform = espressif32 +board = ttgo-t-beam +framework = arduino + +;[env:ttgo-lora32-v2] +;platform = espressif32 +;board = ttgo-lora32-v1 +;framework = arduino + +;[env:ttgo-lora32-v1] +;platform = espressif32 +;board = ttgo-lora32-v1 +;framework = arduino \ No newline at end of file diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index 1f493e1..f4571aa 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -514,6 +514,8 @@ void loop() { loraReceivedLength = sizeof(lora_RXBUFF); // reset max length before receiving! if (rf95.recvAPRS(lora_RXBUFF, &loraReceivedLength)) { loraReceivedFrameString = ""; + //int rssi = rf95.lastSNR(); + //Serial.println(rssi); for (int i=0 ; i < loraReceivedLength ; i++) { loraReceivedFrameString += (char) lora_RXBUFF[i]; }