pull/22/head
Rysiek Labus 2021-03-14 23:31:17 +01:00
parent 30273c3ac7
commit 25e73af068
3 changed files with 8 additions and 6 deletions

View File

@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html
[env]
platform = espressif32
platform = espressif32 @
framework = arduino
monitor_speed = 115200

View File

@ -327,10 +327,10 @@ void writedisplaytext(String HeaderTxt, String Line1, String Line2, String Line3
display.println(Line5);
if (enabled_oled){
//axp.setPowerOutPut(AXP192_DCDC1, AXP202_ON); // enable oled
display.dim(false);
display.dim(true);
}else{
//axp.setPowerOutPut(AXP192_DCDC1, AXP202_OFF); // disable oled
display.dim(true);
display.dim(false);
}
display.display();
time_to_refresh = millis() + showRXTime;
@ -640,8 +640,10 @@ void setup(){
#ifdef BLUETOOTH_PIN
SerialBT.setPin(BLUETOOTH_PIN);
#endif
SerialBT.begin(String("TTGO LORA APRS ") + Tcall);
writedisplaytext("LoRa-APRS","","Init:","BT OK!","","");
#ifdef ENABLE_BLUETOOTH
SerialBT.begin(String("TTGO LORA APRS ") + Tcall);
writedisplaytext("LoRa-APRS","","Init:","BT OK!","","");
#endif
}
#endif

View File

@ -21,7 +21,7 @@
#define SHOW_RX_TIME 10000 //this option is available via WWW // show RX packet for milliseconds (5000 = 5secs)
#define TXFREQ 433.775 // Set transmit frequency in MHz
#define TXdbmW 20 // Set transmit power in dBm 17-50mW, 18-63mW, 19-80mW, 20-100mW
#define ENABLE_BLUETOOTH //this option is available via WWW // bluetooth KISS interface enable
//#define ENABLE_BLUETOOTH //this option is available via WWW // bluetooth KISS interface enable
#define ENABLE_OLED //this option is available via WWW // enable oled
//#define ENABLE_LED_SIGNALING // enable red and blue led signalling
//#define BLUETOOTH_PIN "0000" // bluetooth pairing pin