This commit is contained in:
parent
90093e8d92
commit
f1adb8160a
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
build_flags = -Wl,--gc-sections,--relax
|
build_flags = -Wl,--gc-sections,--relax
|
||||||
board_build.partitions = no_ota.csv
|
board_build.partitions = no_ota.csv
|
||||||
|
|
@ -31,12 +30,12 @@ lib_deps =
|
||||||
SparkFun u-blox Arduino Library
|
SparkFun u-blox Arduino Library
|
||||||
|
|
||||||
[env:ttgo-t-beam-v1.0]
|
[env:ttgo-t-beam-v1.0]
|
||||||
platform = espressif32 @ 3.0.0
|
platform = espressif32
|
||||||
board = ttgo-t-beam
|
board = ttgo-t-beam
|
||||||
build_flags = ${env.build_flags} -D T_BEAM_V1_0
|
build_flags = ${env.build_flags} -D T_BEAM_V1_0
|
||||||
|
|
||||||
[env:ttgo-t-beam-v0.7]
|
[env:ttgo-t-beam-v0.7]
|
||||||
platform = espressif32 @ 3.0.0
|
platform = espressif32
|
||||||
board = ttgo-t-beam
|
board = ttgo-t-beam
|
||||||
build_flags = ${env.build_flags} -D T_BEAM_V0_7
|
build_flags = ${env.build_flags} -D T_BEAM_V0_7
|
||||||
|
|
||||||
|
|
@ -58,10 +57,11 @@ build_flags = ${env.build_flags} -D LORA32_1
|
||||||
[env:Heltec-WiFi-v1]
|
[env:Heltec-WiFi-v1]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = heltec_wifi_kit_32
|
board = heltec_wifi_kit_32
|
||||||
build_flags = ${env.build_flags} -D HELTEC_WIFI_V1
|
build_flags = ${env.build_flags} -D HELTEC_V1
|
||||||
|
|
||||||
[env:Heltec-WiFi-v2]
|
[env:Heltec-WiFi-v2]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = heltec_wifi_kit_32_v2
|
board = heltec_wifi_kit_32_v2
|
||||||
build_flags = ${env.build_flags} -D HELTEC_WIFI_V2
|
build_flags = ${env.build_flags} -D HELTEC_V2
|
||||||
|
|
||||||
|
;
|
||||||
|
|
@ -38,42 +38,48 @@
|
||||||
#define BUTTON 38 //pin number for Button on TTGO T-Beam
|
#define BUTTON 38 //pin number for Button on TTGO T-Beam
|
||||||
#define BUZZER 15 // enter your buzzer pin gpio
|
#define BUZZER 15 // enter your buzzer pin gpio
|
||||||
const byte TXLED = 4; //pin number for LED on TX Tracker
|
const byte TXLED = 4; //pin number for LED on TX Tracker
|
||||||
#elif T_BEAM_V0_7
|
#endif
|
||||||
|
#ifdef T_BEAM_V0_7
|
||||||
#define I2C_SDA 21
|
#define I2C_SDA 21
|
||||||
#define I2C_SCL 22
|
#define I2C_SCL 22
|
||||||
#define SSD1306_ADDRESS 0x3C
|
#define SSD1306_ADDRESS 0x3C
|
||||||
#define BUTTON 39 //pin number for Button on TTGO T-Beam
|
#define BUTTON 39 //pin number for Button on TTGO T-Beam
|
||||||
#define BUZZER 15 // enter your buzzer pin gpio
|
#define BUZZER 15 // enter your buzzer pin gpio
|
||||||
const byte TXLED = 4; //pin number for LED on TX Tracker
|
const byte TXLED = 4; //pin number for LED on TX Tracker
|
||||||
#elif LORA32_1
|
#endif
|
||||||
|
#ifdef LORA32_21
|
||||||
#define I2C_SDA 4
|
#define I2C_SDA 4
|
||||||
#define I2C_SCL 15
|
#define I2C_SCL 15
|
||||||
#define SSD1306_ADDRESS 0x3C
|
#define SSD1306_ADDRESS 0x3C
|
||||||
#define BUTTON 2 //pin number for BUTTO
|
#define BUTTON 2 //pin number for BUTTO
|
||||||
#define BUZZER 13 // enter your buzzer pin gpio
|
#define BUZZER 13 // enter your buzzer pin gpio
|
||||||
const byte TXLED = 4; //pin number for LED on TX Tracker
|
const byte TXLED = 4; //pin number for LED on TX Tracker
|
||||||
#elif LORA32_2
|
#endif
|
||||||
|
#ifdef LORA32_2
|
||||||
#define I2C_SDA 21
|
#define I2C_SDA 21
|
||||||
#define I2C_SCL 22
|
#define I2C_SCL 22
|
||||||
#define SSD1306_ADDRESS 0x3C
|
#define SSD1306_ADDRESS 0x3C
|
||||||
#define BUTTON 2 //pin number for BUTTO
|
#define BUTTON 2 //pin number for BUTTO
|
||||||
#define BUZZER 13 // enter your buzzer pin gpio
|
#define BUZZER 13 // enter your buzzer pin gpio
|
||||||
const byte TXLED = 4; //pin number for LED on TX Tracker
|
const byte TXLED = 4; //pin number for LED on TX Tracker
|
||||||
#elif LORA32_21
|
#endif
|
||||||
|
#ifdef LORA32_1
|
||||||
#define I2C_SDA 21
|
#define I2C_SDA 21
|
||||||
#define I2C_SCL 22
|
#define I2C_SCL 22
|
||||||
#define SSD1306_ADDRESS 0x3C
|
#define SSD1306_ADDRESS 0x3C
|
||||||
#define BUTTON 2 //pin number for BUTTO
|
#define BUTTON 2 //pin number for BUTTO
|
||||||
#define BUZZER 13 // enter your buzzer pin gpio
|
#define BUZZER 13 // enter your buzzer pin gpio
|
||||||
const byte TXLED = 4; //pin number for LED on TX Tracker
|
const byte TXLED = 4; //pin number for LED on TX Tracker
|
||||||
#elif HELTEC_WIFI_V1
|
#endif
|
||||||
|
#ifdef HELTEC_V1
|
||||||
#define I2C_SDA 4
|
#define I2C_SDA 4
|
||||||
#define I2C_SCL 15
|
#define I2C_SCL 15
|
||||||
#define SSD1306_ADDRESS 0x3C
|
#define SSD1306_ADDRESS 0x3C
|
||||||
#define BUTTON 2 //pin number for BUTTO
|
#define BUTTON 2 //pin number for BUTTO
|
||||||
#define BUZZER 13 // enter your buzzer pin gpio
|
#define BUZZER 13 // enter your buzzer pin gpio
|
||||||
const byte TXLED = 4; //pin number for LED on TX Tracker
|
const byte TXLED = 4; //pin number for LED on TX Tracker
|
||||||
#elif HELTEC_WIFI_V2
|
#endif
|
||||||
|
#ifdef HELTEC_V2
|
||||||
#define I2C_SDA 4
|
#define I2C_SDA 4
|
||||||
#define I2C_SCL 15
|
#define I2C_SCL 15
|
||||||
#define SSD1306_ADDRESS 0x3C
|
#define SSD1306_ADDRESS 0x3C
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue