Browse Source

BT

pull/1/head
US1GHQ 11 months ago
parent
commit
05caf02a04
  1. 33
      platformio.ini
  2. 2
      src/TTGO_T-Beam_LoRa_APRS.ino
  3. 2
      tools/buildscript_versioning.py

33
platformio.ini

@ -31,9 +31,9 @@ lib_deps =
build_flags =
-Wl,--gc-sections,--relax
-D 'KISS_PROTOCOL'
-D 'CALLSIGN="N0CALL-0"'
-D 'DIGI_PATH="ECHO"'
-D 'FIXED_BEACON_EN'
-D 'CALLSIGN="1k2"'
-D 'DIGI_PATH="WIDE1-1"'
; -D 'FIXED_BEACON_EN'
-D 'LATIDUDE_PRESET="0000.00N"'
-D 'LONGITUDE_PRESET="00000.00E"'
-D 'APRS_SYMBOL_TABLE="/"'
@ -45,8 +45,8 @@ build_flags =
-D 'SHOW_RX_TIME=10000'
-D 'TXFREQ=433.775'
-D 'SPEED_1200' ; comment out to set 300baud
-D 'TXdbmW=17'
-D 'ENABLE_OLED'
-D 'TXdbmW=20'
; -D 'ENABLE_OLED'
-D 'ENABLE_LED_SIGNALING'
-D 'NETWORK_TNC_PORT=8001'
-D 'MAX_TIME_TO_NEXT_TX=360000L'
@ -60,7 +60,7 @@ board = ttgo-t-beam
build_flags =
${env.build_flags}
-D T_BEAM_V1_0
-D ENABLE_WIFI
; -D ENABLE_WIFI
-D ENABLE_BLUETOOTH
[env:ttgo-t-beam-v0.7]
@ -68,7 +68,8 @@ platform = espressif32 @ 3.0.0
board = ttgo-t-beam
build_flags =
${env.build_flags}
-D ENABLE_WIFI
; -D ENABLE_WIFI
-D ENABLE_BLUETOOTH
-D T_BEAM_V0_7
[env:ttgo-lora32-v2.1]
@ -76,7 +77,8 @@ platform = espressif32 @ 3.2.1
board = ttgo-lora32-v21
build_flags =
${env.build_flags}
-D ENABLE_WIFI
; -D ENABLE_WIFI
-D ENABLE_BLUETOOTH
-D LORA32_21
[env:ttgo-lora32-v2]
@ -84,7 +86,8 @@ platform = espressif32 @ 3.2.1
board = ttgo-lora32-v2
build_flags =
${env.build_flags}
-D ENABLE_WIFI
; -D ENABLE_WIFI
-D ENABLE_BLUETOOTH
-D LORA32_2
[env:ttgo-lora32-v1]
@ -92,7 +95,8 @@ platform = espressif32 @ 3.2.1
board = ttgo-lora32-v1
build_flags =
${env.build_flags}
-D ENABLE_WIFI
; -D ENABLE_WIFI
-D ENABLE_BLUETOOTH
-D LORA32_1
[env:Heltec-WiFi-v1]
@ -100,7 +104,8 @@ platform = espressif32 @ 3.2.1
board = heltec_wifi_kit_32
build_flags =
${env.build_flags}
-D ENABLE_WIFI
; -D ENABLE_WIFI
-D ENABLE_BLUETOOTH
-D HELTEC_V1
[env:Heltec-WiFi-v2]
@ -109,7 +114,8 @@ board = heltec_wifi_kit_32_v2
board_build.f_cpu = 80000000L
build_flags =
${env.build_flags}
-D ENABLE_WIFI
; -D ENABLE_WIFI
-D ENABLE_BLUETOOTH
-D HELTEC_V2
[env:Esp32-Dev-v1]
@ -119,7 +125,8 @@ board = esp32dev
;board_build.f_cpu = 80000000L
build_flags =
${env.build_flags}
-D ENABLE_WIFI
; -D ENABLE_WIFI
-D ENABLE_BLUETOOTH
-D ESP32_DEV_V1
[env:ttgo-t-beam-v1.0-development]

2
src/TTGO_T-Beam_LoRa_APRS.ino

@ -784,7 +784,7 @@ void setup(){
SerialBT.setPin(BLUETOOTH_PIN);
#endif
#ifdef ENABLE_BLUETOOTH
SerialBT.begin(String("TTGO LORA APRS ") + Tcall);
SerialBT.begin(String("LORA APRS ") + Tcall);
writedisplaytext("LoRa-APRS","","Init:","BT OK!","","");
#endif
}

2
tools/buildscript_versioning.py

@ -11,7 +11,7 @@ try:
build_no = int(f.readline()) + 1
except:
print('Starting build number from 1..')
build_no = 53
build_no = 143
with open(FILENAME_BUILDNO, 'w+') as f:
f.write(str(build_no))
print('Build number: {}'.format(build_no))

Loading…
Cancel
Save