-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
272 lines (260 loc) · 8.32 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
[platformio]
default_envs = ttgo-t-display, esp32dev, esp32doit-devkit-v1, esp32doit-devkit-v1-ble, esp32doit-devkit-v1-wifi, esp-wrover-kit, heltec_wifi_kit_32, ttgo-t-eight, ttgo-t-eight-ble, ttgo-t-eight-wifi
;workspace_dir = ~/Downloads/PedalinoMini
[common]
build_flags_esp32 =
-D PLATFORMIO_ENV=$PIOENV
-D PEDALINO_MINI
-D DEBUG_ESP_PORT=Serial
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
-D DIAGNOSTIC
-D NVS
;-D BATTERY
-D SSD1306WIRE
; -D SSH1106WIRE
; -D WEBSOCKET
; -D SMARTCONFIG
; -D WPS
; -D NOWEBCONFIG
build_flags_esp32-ble =
-D PLATFORMIO_ENV=$PIOENV
-D PEDALINO_MINI
-D DEBUG_ESP_PORT=Serial
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
-D DIAGNOSTIC
-D NVS
-D NOWIFI
-D SSD1306WIRE
; -D SSH1106WIRE
build_flags_esp32-wifi =
-D PLATFORMIO_ENV=$PIOENV
-D PEDALINO_MINI
-D DEBUG_ESP_PORT=Serial
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
-D DIAGNOSTIC
-D NOBLE
-D SSD1306WIRE
; -D SSH1106WIRE
; -D WEBSOCKET
; -D NOWEBCONFIG
; -D WPS
build_flags_heltec_wifi_kit_32 =
-D PLATFORMIO_ENV=$PIOENV
-D PEDALINO_MINI
-D HELTEC_WIFI_KIT_32
-D DEBUG_ESP_PORT=Serial
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
-D DIAGNOSTIC
-D NVS
-D BATTERY
; -D WEBSOCKET
; -D SMARTCONFIG
; -D WPS
; -D NOWEBCONFIG
build_flags_ttgo_t_eight =
-D PLATFORMIO_ENV=$PIOENV
-D PEDALINO_MINI
-D TTGO_T_EIGHT
; -DBOARD_HAS_PSRAM
; -mfix-esp32-psram-cache-issue
-D DEBUG_ESP_PORT=Serial
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
-D DIAGNOSTIC
-D NVS
; -D WEBSOCKET
; -D SMARTCONFIG
; -D WPS
; -D BATTERY
; -D BLUFI
; -D NOWIFI
; -D NOBLE
; -D NOWEBCONFIG
build_flags_ttgo_t_eight-ble =
-D PLATFORMIO_ENV=$PIOENV
-D PEDALINO_MINI
-D TTGO_T_EIGHT
; -DBOARD_HAS_PSRAM
; -mfix-esp32-psram-cache-issue
; -D DEBUG_ESP_PORT=Serial
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
-D NVS
-D NOWIFI
-D NOWEBCONFIG
build_flags_ttgo_t_eight-wifi =
-D PLATFORMIO_ENV=$PIOENV
-D PEDALINO_MINI
-D TTGO_T_EIGHT
; -DBOARD_HAS_PSRAM
; -mfix-esp32-psram-cache-issue
-D DEBUG_ESP_PORT=Serial
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
-D DIAGNOSTIC
-D NVS
; -D WEBSOCKET
-D NOBLE
; -D NOWEBCONFIG
; -D WPS
build_flags_ttgo_t_display =
-D PLATFORMIO_ENV=$PIOENV
-D PEDALINO_MINI
-D TTGO_T_DISPLAY
-D DEBUG_ESP_PORT=Serial
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
-D DIAGNOSTIC
-D NVS
;-D WEBSOCKET
;-D ARDUINOOTA
;-D SMARTCONFIG
;-D WPS
;-D BLUFI
-D BATTERY
-D USER_SETUP_LOADED ; TFT_eSPI configuration setup defined in platformio.ini
-D ST7789_DRIVER ; TTGO T-Display TFT display driver to load
-D TFT_SDA_READ
-D TFT_WIDTH=135
-D TFT_HEIGHT=240
-D CGRAM_OFFSET
-D TFT_MOSI=19
-D TFT_SCLK=18
-D TFT_CS=5
-D TFT_DC=16
-D TFT_RST=23
-D TFT_BL=4
-D TFT_BACKLIGHT_ON=1
-D LOAD_GLCD
;-D LOAD_FONT2
;-D LOAD_FONT4
;-D LOAD_FONT6
;-D LOAD_FONT7
;-D LOAD_FONT8
-D LOAD_GFXFF
-D SMOOTH_FONT
-D SPI_FREQUENCY=40000000 ; 40 Mhz is the maximum for the ST7789V
-D SPI_READ_FREQUENCY=6000000 ; 6 MHz is the maximum SPI read speed for the ST7789V
[env]
platform = espressif32@3.5.0
framework = arduino
board = esp32dev
board_build.f_flash = 80000000L
board_build.partitions = src/partitions_ota.csv
board_upload.maximum_size = 1900544
build_type = release ; release, test, debug
lib_deps = https://github.com/bxparks/AceButton
https://github.com/bblanchon/ArduinoJson
https://github.com/me-no-dev/AsyncTCP
https://github.com/me-no-dev/ESPAsyncWebServer
https://github.com/ThingPulse/esp8266-oled-ssd1306
https://github.com/FastLED/FastLED
https://github.com/d03n3rfr1tz3/HC-SR04
https://github.com/improv-wifi/sdk-cpp
https://github.com/MajicDesigns/MD_REncoder
https://github.com/h2zero/NimBLE-Arduino@^1.4.0
https://github.com/CNMAT/OSC
https://github.com/dxinteractive/ResponsiveAnalogRead
https://github.com/Bodmer/TFT_eSPI
https://github.com/FortySevenEffects/arduino_midi_library
https://github.com/lathoub/Arduino-AppleMIDI-Library
https://github.com/lathoub/Arduino-BLE-MIDI
https://github.com/lathoub/Arduino-ipMIDI
;lib_deps = bxparks/AceButton@^1.9.2
; bblanchon/ArduinoJson@^6.19.3
; me-no-dev/AsyncTCP@^1.1.1
; me-no-dev/ESP Async WebServer@^1.2.3
; thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays@^4.2.1
; fastled/FastLED@^3.5.0
; d03n3rfr1tz3/HC-SR04@^1.1.2
; esphome/Improv@^1.2.1
; majicdesigns/MD_REncoder@^1.0.1
; h2zero/NimBLE-Arduino@^1.3.7
; cnmat/OSC@^0.0.0
; dxinteractive/ResponsiveAnalogRead@^1.2.1
; bodmer/TFT_eSPI@^2.4.42
; fortyseveneffects/MIDI Library@5.0.2
; lathoub/AppleMIDI@^3.1.2
; lathoub/BLE-MIDI@^2.2
; lathoub/ipMIDI@^1.0.3
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, default
[env:esp32dev]
build_flags = ${common.build_flags_esp32}
;board_build.partitions = src/partitions_no_ota.csv
upload_port = COM4
monitor_port = ${env:esp32dev.upload_port}
[env:esp32doit-devkit-v1]
board = esp32doit-devkit-v1
build_flags = ${common.build_flags_esp32}
;upload_port = 972de6b4.local
;upload_protocol = espota
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM4
monitor_port = ${env:esp32doit-devkit-v1.upload_port}
[env:esp32doit-devkit-v1-ble]
board = esp32doit-devkit-v1
build_flags = ${common.build_flags_esp32-ble}
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM4
monitor_port = ${env:esp32doit-devkit-v1-ble.upload_port}
[env:esp32doit-devkit-v1-wifi]
board = esp32doit-devkit-v1
build_flags = ${common.build_flags_esp32-wifi}
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM4
monitor_port = ${env:esp32doit-devkit-v1-wifi.upload_port}
[env:esp-wrover-kit]
board = esp-wrover-kit
build_flags = ${common.build_flags_esp32}
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM4
monitor_port = ${env:esp-wrover-kit.upload_port}
[env:heltec_wifi_kit_32]
board = heltec_wifi_kit_32
build_flags = ${common.build_flags_heltec_wifi_kit_32}
lib_deps = https://github.com/HelTecAutomation/Heltec_ESP32 ; replacement of https://github.com/ThingPulse/esp8266-oled-ssd1306
https://github.com/bxparks/AceButton
https://github.com/bblanchon/ArduinoJson
https://github.com/me-no-dev/AsyncTCP
https://github.com/me-no-dev/ESPAsyncWebServer
https://github.com/FastLED/FastLED
https://github.com/d03n3rfr1tz3/HC-SR04
https://github.com/improv-wifi/sdk-cpp
https://github.com/MajicDesigns/MD_REncoder
https://github.com/h2zero/NimBLE-Arduino@^1.4.0
https://github.com/CNMAT/OSC
https://github.com/dxinteractive/ResponsiveAnalogRead
https://github.com/Bodmer/TFT_eSPI
https://github.com/FortySevenEffects/arduino_midi_library
https://github.com/lathoub/Arduino-AppleMIDI-Library
https://github.com/lathoub/Arduino-BLE-MIDI
https://github.com/lathoub/Arduino-ipMIDI
board_build.partitions = src/partitions_no_ota.csv
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM4
monitor_port = ${env:esp32doit-devkit-v1.upload_port}
[env:ttgo-t-eight]
build_flags = ${common.build_flags_ttgo_t_eight}
;upload_port = 8e2de6b4.local
;upload_port = 192.168.2.117
; https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM5
monitor_port = ${env:ttgo-t-eight.upload_port}
[env:ttgo-t-eight-ble]
build_flags = ${common.build_flags_ttgo_t_eight-ble}
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM5
monitor_port = ${env:ttgo-t-eight-ble.upload_port}
[env:ttgo-t-eight-wifi]
build_flags = ${common.build_flags_ttgo_t_eight-wifi}
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM5
monitor_port = ${env:ttgo-t-eight-wifi.upload_port}
[env:ttgo-t-display]
build_flags = ${common.build_flags_ttgo_t_display}
;upload_port = 2ab267ac.local
;upload_port = 60a8cc84.local
;upload_protocol = espota
; https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip
upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM5
monitor_port = ${env:ttgo-t-display.upload_port}
;monitor_port = /dev/tty.SLAB_USBtoUART