From 93cafb34d65f32cd7f1a86d1c366900e17e52b7b Mon Sep 17 00:00:00 2001 From: Rysiek Labus Date: Tue, 23 Feb 2021 23:04:09 +0100 Subject: [PATCH] build options --- platformio.ini | 9 +++++++- src/TTGO_T-Beam_LoRa_APRS_config.h | 37 +++++++++++++++--------------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/platformio.ini b/platformio.ini index bf77d26..109fd81 100644 --- a/platformio.ini +++ b/platformio.ini @@ -24,10 +24,17 @@ lib_deps = #adafruit/Adafruit BME280 Library@^2.1.2 -[env:ttgo-t-beam] +[env:ttgo-t-beam-v1.0] platform = espressif32 board = ttgo-t-beam framework = arduino +build_flags = -DT_BEAM_V1_0 + +[env:ttgo-t-beam-v0.7] +platform = espressif32 +board = ttgo-t-beam +framework = arduino +build_flags = -DT_BEAM_V0_7 [env:ttgo-lora32-v2] platform = espressif32 diff --git a/src/TTGO_T-Beam_LoRa_APRS_config.h b/src/TTGO_T-Beam_LoRa_APRS_config.h index fbc9203..ed973e1 100644 --- a/src/TTGO_T-Beam_LoRa_APRS_config.h +++ b/src/TTGO_T-Beam_LoRa_APRS_config.h @@ -6,29 +6,28 @@ // licensed under CC BY-NC-SA // USER DATA - USE THESE LINES TO MODIFY YOUR PREFERENCES -#define KISS_PROTOCOL // If enabled send and receive data in SIMPLE KISS format to serial port -#define CALLSIGN "SQ9MDD-11" // enter your callsign here - less then 6 letter callsigns please add "spaces" so total length is 6 (without SSID) -#define DIGI_PATH "WIDE1-1" // one hope please (WIDE1-1) -#define FIXED_BEACON_EN // allows cyclic sending of a bicon when GPS is turned off -#define LATIDUDE_PRESET "5215.03N" // please in APRS notation: DDMM.mmN or DDMM.mmS (used for manual or fixed beacon sending) -#define LONGITUDE_PRESET "02055.59E" // please in APRS notation: DDDMM.mmE or DDDMM.mmW (used for manual or fixed beacon sending) +#define KISS_PROTOCOL // If enabled send and receive data in SIMPLE KISS format to serial port +#define CALLSIGN "SQ9MDD-11" // enter your callsign here - less then 6 letter callsigns please add "spaces" so total length is 6 (without SSID) +#define DIGI_PATH "WIDE1-1" // one hope please (WIDE1-1) +#define FIXED_BEACON_EN // allows cyclic sending of a bicon when GPS is turned off +#define LATIDUDE_PRESET "5215.03N" // please in APRS notation: DDMM.mmN or DDMM.mmS (used for manual or fixed beacon sending) +#define LONGITUDE_PRESET "02055.59E" // please in APRS notation: DDDMM.mmE or DDDMM.mmW (used for manual or fixed beacon sending) #define APRS_SYMBOL_TABLE "/" -#define APRS_SYMBOL "[" // other symbols are: "[" => RUNNER, "b" => BICYCLE, "<" => MOTORCYCLE, "R" => Recreation Vehicle -#define MY_COMMENT "Lora Tracker" // add your coment here - if empty then no comment is sent +#define APRS_SYMBOL "[" // other symbols are: "[" => RUNNER, "b" => BICYCLE, "<" => MOTORCYCLE, "R" => Recreation Vehicle +#define MY_COMMENT "Lora Tracker" // add your coment here - if empty then no comment is sent //#define SHOW_ALT // send Altitude in frame -#define SHOW_BATT // send battery voltage at the end of comment (we need beggining for QSY message format) -#define SHOW_RX_PACKET // uncomment to show received LoRa APS packets for the time given below -#define SHOW_RX_TIME 10000 // show RX packet for milliseconds (5000 = 5secs) -#define TXFREQ 433.775 // Transmit frequency in MHz -#define TXdbmW 20 // Transmit power in dBm 17-50mW, 18-63mW, 19-80mW, 20-100mW -#define ENABLE_BLUETOOTH // bluetooth KISS interface enable +#define SHOW_BATT // send battery voltage at the end of comment (we need beggining for QSY message format) +#define SHOW_RX_PACKET // uncomment to show received LoRa APS packets for the time given below +#define SHOW_RX_TIME 10000 // show RX packet for milliseconds (5000 = 5secs) +#define TXFREQ 433.775 // Transmit frequency in MHz +#define TXdbmW 20 // Transmit power in dBm 17-50mW, 18-63mW, 19-80mW, 20-100mW +#define ENABLE_BLUETOOTH // bluetooth KISS interface enable //#define BLUETOOTH_PIN "0000" //#define ENABLE_TNC_SELF_TELEMETRY //#define LOCAL_KISS_ECHO // echoing KISS frame back -#define T_BEAM_V1_0 // if enabled t-beam v1.0 disabled t-beam V.0.7 +//#define T_BEAM_V1_0 // if enabled t-beam v1.0 disabled t-beam V.0.7 //#define KISS_DEBUG -#define MAX_TIME_TO_NEXT_TX 360000L // TRANSMIT INTERVAL set here MAXIMUM time in ms(!) for smart beaconing - minimum time is always 1 min = 60 secs = 60000L !!! -#define FIX_BEACON_INTERVAL 1800000L // Fixed beacon interwal (when GPS is disabled and FIXED_BEACON_EN is enabled) 30min default -#define TNC_SELF_TELEMETRY_INTERVAL (5*60*1000) - +#define MAX_TIME_TO_NEXT_TX 360000L // TRANSMIT INTERVAL set here MAXIMUM time in ms(!) for smart beaconing - minimum time is always 1 min = 60 secs = 60000L !!! +#define FIX_BEACON_INTERVAL 1800000L // Fixed beacon interwal (when GPS is disabled and FIXED_BEACON_EN is enabled) 30min default +#define TNC_SELF_TELEMETRY_INTERVAL (5 * 60 * 1000)