platformio lora32 board support

pull/15/head
Rysiek Labus 2021-02-17 20:26:10 +01:00
parent f217e3f96a
commit b6a44ee8c3
2 changed files with 19 additions and 4 deletions

View File

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

View File

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