-
Notifications
You must be signed in to change notification settings - Fork 26
/
platformio.ini
198 lines (187 loc) · 6.89 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
; Added this here to "hard code" the environment for macro debugging/visuals/build (this needs to be commented out before merge for actions to work)
; default_envs = lcd_ssd1306
; default_envs = d32_pro_tft
; default_envs = tft_espi
[common]
platform = espressif32
framework = arduino
board_build.partitions = 4mb_inc_ota.csv
upload_speed = 460800
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
monitor_dtr = 1
monitor_rts = 1
build_flags = ; Do not use spaces around the "=" here, will give you a builder not found error
!python tools/git_rev.py ; Pick up git information for version (disabled), branch, and commit (in version.cpp)
-D PIO_SRC_TAG=1.2.2 ; Increment versions shown in about.htm page (from version.cpp)
; Async TCP Settings:
-D CONFIG_ASYNC_TCP_RUNNING_CORE=1 ; per: https://github.com/me-no-dev/ESPAsyncWebServer/issues/731#issuecomment-628163515
-D CONFIG_ASYNC_TCP_USE_WDT=1
; BLE Settings:
-D CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE=1
;-D CONFIG_SW_COEXIST_PREFERENCE_BALANCED=1
-D CONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED=1 ; Disable NimBLE Server
-D CONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED=1 ; Disable NimBLE Broadcaster
; Debug logging
-D PRINT_GRAV_UPDATES=0 ; Turn on and off gravity printing to serial log
-D CORE_DEBUG_LEVEL=0 ; Set core Arduino log level (5 = high)
-D ARDUINO_LOG_LEVEL=0 ; Set Serial log level (6 = high)
-D CONFIG_NIMBLE_CPP_LOG_LEVEL=0 ; Set NimBLE log level (4 = high)
;-D PARSE_DEBUG ; Turn main Parse debug logging on
;-D PARSE_DEBUG_RESPONSE ; Turn Parse response debugging on
-D DISABLE_LOGGING ; This will remove log lib from sketch
; Project conditional compile/options:
-D BAUD=${common.monitor_speed} ; Serial monitor baud setting
-D FILESYSTEM=SPIFFS ; Define filesystem in use
-D DISABLE_OTA_UPDATES=1
;-D DOTELNET=1 ; Allow Telnet serial logging
;-D TELNETPORT=23
-D WEBPORT=80
;-D FSEDIT=1 ; Use a filesystem editor
extra_scripts = tools/get_port.py ; Pick up port information based on OS
lib_deps =
bblanchon/ArduinoJson @ 6.21.5 ; https://github.com/bblanchon/ArduinoJson
; thijse/ArduinoLog @ 1.1.1 ; https://github.com/thijse/Arduino-Log.git
https://github.com/thorrak/Arduino-Log.git ; // Need this until ArduinoLog merges https://github.com/thijse/Arduino-Log/pull/23
https://github.com/lbussy/esptelnet.git
https://github.com/me-no-dev/ESPAsyncWebServer.git
https://github.com/thorrak/WiFiManager.git#feature_asyncwebserver
h2zero/NimBLE-Arduino @ 1.4.1 ; https://github.com/h2zero/NimBLE-Arduino
256dpi/MQTT @ 2.5.2 ; https://github.com/256dpi/arduino-mqtt
lbussy/LCBUrl @ ^1.1.9
https://github.com/lbussy/Parse-SDK-Arduino.git#fix_warnings
espi_lib_deps =
bodmer/TFT_eSPI @ 2.4.79 ; https://github.com/Bodmer/TFT_eSPI.git
build_type = release ; debug
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Individual build configurations
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[env:lcd_ssd1306] ; Small OLED Board
board = lolin_d32
platform = ${common.platform}
framework = ${common.framework}
board_build.partitions = ${common.board_build.partitions}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
monitor_dtr = ${common.monitor_dtr}
monitor_rts = ${common.monitor_rts}
build_flags =
${common.build_flags}
-DLCD_SSD1306
-DDISABLE_OTA_UPDATES
lib_deps =
${common.lib_deps}
https://github.com/ThingPulse/esp8266-oled-ssd1306.git#4.3.0
build_type = ${common.build_type}
[env:d32_pro_tft] ; Lolin ESP32 + ILI TFT
board = lolin_d32_pro
platform = ${common.platform}
framework = ${common.framework}
board_build.partitions = 4mb_no_ota.csv
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
monitor_dtr = ${common.monitor_dtr}
monitor_rts = ${common.monitor_rts}
build_flags =
${common.build_flags}
-D LCD_TFT=1
-D USER_SETUP_LOADED=1
-D ILI9341_DRIVER=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=320
-D CGRAM_OFFSET=1
-D TFT_BL=32
-D SMOOTH_FONT=1
-D TFT_BACKLIGHT_ON=1
-D LOAD_GFXFF=1
-D TOUCH_CS=12
lib_deps =
${common.lib_deps}
${common.espi_lib_deps}
build_type = ${common.build_type}
[env:tft_espi] ; TTGO TFT (USB-C) Board
; This is configured for a TTGO T-Display using the tft_espi drivers
; it should work for other tft_espi compatible displays, if you tweak
; the defines appropriately. See the documentation for TFT_eSPI at
; https://github.com/Bodmer/TFT_eSPI
board = esp32dev
platform = ${common.platform}
framework = ${common.framework}
board_build.partitions = ${common.board_build.partitions}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
monitor_dtr = ${common.monitor_dtr}
monitor_rts = ${common.monitor_rts}
build_flags =
${common.build_flags}
-DLCD_TFT_ESPI=1
-DDISABLE_OTA_UPDATES=1
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1
-DTFT_MISO=-1
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=16
-DTFT_RST=23
-DTFT_BL=4
-DLOAD_GFXFF=1
lib_deps =
${common.lib_deps}
${common.espi_lib_deps}
build_type = ${common.build_type}
[env:m5stickc_plus]
board = esp32dev
platform = ${common.platform}
framework = ${common.framework}
board_build.partitions = ${common.board_build.partitions}
upload_speed = 1500000
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
monitor_dtr = ${common.monitor_dtr}
monitor_rts = ${common.monitor_rts}
build_flags =
${common.build_flags}
-DLCD_TFT_M5STICKC=1
-DLCD_TFT_ESPI=1
-DDISABLE_OTA_UPDATES
-DBUTTON_INVERT
-DLCD_TFT_ESPI=1
-DAXP192=1
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1
-DTFT_MISO=-1
-DTFT_MOSI=15
-DTFT_SCLK=13
-DTFT_CS=5
-DTFT_DC=23
-DTFT_RST=18
-DLOAD_GFXFF=1
-DWIFI_RESET_BUTTON_GPIO=37
-DDISABLE_OTA_UPDATES
lib_deps =
${common.lib_deps}
${common.espi_lib_deps}
tanakamasayuki/I2C AXP192 Power management@^1.0.4
build_type = ${common.build_type}
check_skip_packages = yes