Browse Source

platformio lora32 board support

pull/15/head
Rysiek Labus 10 months ago
parent
commit
b6a44ee8c3
  1. 21
      platformio.ini
  2. 2
      src/TTGO_T-Beam_LoRa_APRS.ino

21
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

2
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];
}

Loading…
Cancel
Save