added TTGO board (need to update pins)

This commit is contained in:
2021-01-12 11:30:11 +01:00
parent b6dabcd16f
commit f7841ff42d
2 changed files with 27 additions and 1 deletions

View File

@@ -30,6 +30,17 @@ platform = espressif32
board = lolin32 board = lolin32
framework = arduino framework = arduino
build_flags = -D ENVIRONMENT=2 build_flags = -D ENVIRONMENT=2
lib_deps =
ericksimoes/Ultrasonic@^3.0.0
256dpi/MQTT@^2.4.8
http://192.168.2.3/Bonobo.Git.Server/OLEDDisplay.git
monitor_speed = 115200
[env:ttgo-t18]
platform = espressif32
board = ttgo-t1
framework = arduino
build_flags = -D ENVIRONMENT=3
lib_deps = lib_deps =
ericksimoes/Ultrasonic@^3.0.0 ericksimoes/Ultrasonic@^3.0.0
256dpi/MQTT@^2.4.8 256dpi/MQTT@^2.4.8

View File

@@ -12,7 +12,9 @@
#define HELTECv2 1 #define HELTECv2 1
#define LOLIN32 2 #define LOLIN32 2
#define HELTECv21 3 #define TTGO_T18 3
#define HELTECv21 4
#if ENVIRONMENT == HELTECv2 //HELTEC WIFI LORA V2 #if ENVIRONMENT == HELTECv2 //HELTEC WIFI LORA V2
@@ -48,4 +50,17 @@
#endif #endif
#if ENVIRONMENT == TTGO_T18 //LOLIN32
#define SDA_OLED 15
#define SCL_OLED 4
#define RST_OLED 17
#define TRIGGER 13
#define ECHO 14
#define VBATT ADC2_CHANNEL_1
#define VEXT 21
#endif
#endif //HALH #endif //HALH