-
Notifications
You must be signed in to change notification settings - Fork 27
/
platformio.ini
221 lines (209 loc) · 8.62 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
; 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
; platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#1.0.6
framework = arduino
; As the framework has grown, min_spiffs no longer has enough space. We're now
; requiring 16MB of flash space for most builds (which comes standard with the
; recommended D32 Pro)
board_build.partitions = 4mb_inc_ota.csv
upload_speed = 460800
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
; log2file
; This can/will be set in tools/get_port.py
; upload_port =
; monitor_port =
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.1.3 ; 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 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.17.2 ; 6.18.5
; 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/tzapu/WiFiManager.git#e0c5fb7daf4c44f2753fdc7325b9d47ad154ed30 ;#feature_asyncwebserver
h2zero/NimBLE-Arduino @ 1.3.4 ; https://github.com/h2zero/NimBLE-Arduino.git
256dpi/MQTT @ 2.4.8
lbussy/LCBUrl @ ^1.1.7
;https://github.com/DJMarlow/Parse-SDK-Arduino.git
https://github.com/lbussy/Parse-SDK-Arduino.git#fix_warnings
build_type = release ; debug
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Individual build configurations
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[env:lcd_ssd1306] ; Small OLED Board
board = lolin_d32
platform = ${common.platform}
; platform_packages = ${common.platform_packages}
framework = ${common.framework}
; For the "OLED" variant, we can't guarantee we have more than 4MB of flash. Use
; huge_app to get us the space - but at the cost of being able to update OTA.
board_build.partitions = ${common.board_build.partitions}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; This can/will be set in tools/get_port.py
; upload_port = ${common.upload_port}
; monitor_port = ${common.monitor_port}
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}
; platform_packages = ${common.platform_packages}
framework = ${common.framework}
; There's issues with the way that BrewFlasher flashes the bootloader with the latest esptool, meaning we can't use
; the 16MB boards unless we define a new devicefamily. I really don't want to do that, so we'll go back to 4MB.
; board_build.partitions = large_spiffs_16MB.csv
board_build.partitions = 4mb_no_ota.csv
; board_build.partitions = ${common.board_build.partitions}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; This can/will be set in tools/get_port.py
; upload_port = {common.upload_port}
; monitor_port = ${common.monitor_port}
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
; -DTFT_MISO=19 ; in TFT_eSPI_ESP32.h
; -DTFT_MOSI=23 ; in TFT_eSPI_ESP32.h
; -DTFT_SCLK=18 ; in TFT_eSPI_ESP32.h
; -DTFT_CS=14 ; in pins_arduino.h
; -DTFT_DC=27 ; in pins_arduino.h
; -DTFT_RST=33 ; in pins_arduino.h
; -DSPI_FREQUENCY=40000000 ; in TFTe_SPI.h
; -DSPI_READ_FREQUENCY=20000000 ; in TFTe_SPI.h
; -DSPI_TOUCH_FREQUENCY=2500000 ; in TFTe_SPI.h
-D TFT_BL=32
-D SMOOTH_FONT=1
-D TFT_BACKLIGHT_ON=1
-D LOAD_GFXFF=1
-D GFXFF=1
-D TOUCH_CS=1
;-D CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL=1 ; Use PSRAM for NimBLE
lib_deps =
${common.lib_deps}
bodmer/TFT_eSPI @ 2.4.72 ; https://github.com/Bodmer/TFT_eSPI.git
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}
; platform_packages = ${common.platform_packages}
framework = ${common.framework}
; The T-Display has 4MB of flash. Use huge_app to get us the space - but
; at the cost of being able to update OTA.
board_build.partitions = ${common.board_build.partitions}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; This can/will be set in tools/get_port.py
; upload_port = -DUSBC
; monitor_port = -DUSBC
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}
bodmer/TFT_eSPI @ 2.4.72 ; https://github.com/Bodmer/TFT_eSPI.git
build_type = ${common.build_type}
[env:m5stickc] ; M5Stack M5Stick-C
board = m5stick-c
board_build.f_cpu = 240000000L
platform = ${common.platform}
; platform_packages = ${common.platform_packages}
framework = ${common.framework}
board_build.partitions = ${common.board_build.partitions}
upload_speed = 1500000
monitor_speed = ${common.monitor_speed}
monitor_filters = ${common.monitor_filters}
; This can/will be set in tools/get_port.py
; upload_port = {common.upload_port}
; monitor_port = ${common.monitor_port}
monitor_dtr = ${common.monitor_dtr}
monitor_rts = ${common.monitor_rts}
build_flags =
${common.build_flags}
-DLCD_TFT_M5STICKC=1
-DDISABLE_OTA_UPDATES
lib_deps =
${common.lib_deps}
m5stack/M5StickC @ 0.2.0
build_type = ${common.build_type}