-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
platformio.ini
275 lines (247 loc) · 11.7 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
273
274
275
; __________ .___ .__ .__ _____ .__ .__ ___ ________________ ___
; \______ \ ____ __| _/____ | | |__| ____ ____ / \ |__| ____ |__| / / \__ ___/ \ \ \
; | ___// __ \ / __ |\__ \ | | | |/ \ / _ \ / \ / \| |/ \| | / / | | / \ / \ \ \
; | | \ ___// /_/ | / __ \| |_| | | ( <_> ) Y \ | | \ | ( ( | |/ Y \ ) )
; |____| \___ >____ |(____ /____/__|___| /\____/\____|__ /__|___| /__| \ \ |____|\____|__ / / /
; \/ \/ \/ \/ \/ \/ \__\ \/ /__/
; (c) 2018-2024 alf45star
; https://github.com/alf45tar/PedalinoMini
[platformio]
default_envs = bpi-leaf-s3, lilygo-t-display-s3, lilygo-t-display, 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 = ${sysenv.TMPDIR}/PedalinoMini
[common]
lib_deps =
bxparks/[email protected] ; https://github.com/bxparks/AceButton
bblanchon/[email protected] ; https://github.com/bblanchon/ArduinoJson
; me-no-dev/[email protected] ; https://github.com/me-no-dev/AsyncTCP
; https://github.com/me-no-dev/ESPAsyncWebServer.git ; https://github.com/me-no-dev/ESPAsyncWebServer
esphome/[email protected] ; https://github.com/esphome/AsyncTCP
esphome/[email protected] ; https://github.com/esphome/ESPAsyncWebServer
fastled/[email protected] ; https://github.com/FastLED/FastLED
d03n3rfr1tz3/[email protected] ; https://github.com/d03n3rfr1tz3/HC-SR04
esphome/[email protected] ; https://github.com/improv-wifi/sdk-cpp
majicdesigns/[email protected] ; https://github.com/MajicDesigns/MD_REncoder
h2zero/[email protected] ; https://github.com/h2zero/NimBLE-Arduino
https://github.com/CNMAT/[email protected] ; https://github.com/CNMAT/OSC
dxinteractive/[email protected] ; https://github.com/dxinteractive/ResponsiveAnalogRead
bodmer/[email protected] ; https://github.com/Bodmer/TFT_eSPI
fortyseveneffects/MIDI [email protected] ; https://github.com/FortySevenEffects/arduino_midi_library
lathoub/[email protected] ; https://github.com/lathoub/Arduino-AppleMIDI-Library
lathoub/[email protected] ; https://github.com/lathoub/Arduino-BLE-MIDI
;[email protected] ; https://github.com/max22-/ESP32-BLE-MIDI
lathoub/[email protected] ; https://github.com/lathoub/Arduino-ipMIDI
ryokosaka/Hello [email protected] ; https://github.com/RyoKosaka/HelloDrum-arduino-Library
adafruit/Adafruit [email protected] ; https://github.com/adafruit/Adafruit_ADS1X15
build_flags =
-D PEDALINO_MINI
-D PLATFORMIO_ENV=$PIOENV
-D DEBUG_ESP_PORT=Serial
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_WARN
; -D CONFIG_ASYNC_TCP_RUNNING_CORE=0
; -D CONFIG_ASYNC_TCP_USE_WDT=0
-D DIAGNOSTIC
-D NVS
-D SMARTCONFIG
-D WPS
; -D WEBSOCKET
; -D NOWEBCONFIG
; -D BLECLIENT
; -D BLUFI
; -D ARDUINOOTA
build_flags_esp32 =
-D SSD1306WIRE
; -D SSH1106WIRE
build_flags_esp32-ble =
-D NOWIFI
-D SSD1306WIRE
build_flags_esp32-wifi =
-D NOBLE
-D SSD1306WIRE
build_flags_heltec_wifi_kit_32 =
-D HELTEC_WIFI_KIT_32
-D BATTERY
build_flags_ttgo_t_eight =
-D TTGO_T_EIGHT
-D BOARD_HAS_PSRAM ; not enabled by default
-mfix-esp32-psram-cache-issue
build_flags_ttgo_t_eight-ble =
-D TTGO_T_EIGHT
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D NOWIFI
build_flags_ttgo_t_eight-wifi =
-D TTGO_T_EIGHT
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-D NOBLE
build_flags_lilygo_t_display =
-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_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
build_flags_ttgo_t_display =
${common.build_flags_lilygo_t_display}
-D ARDUINO_LILYGO_T_DISPLAY
build_flags_bpi_leaf_s3 =
-D ARDUINO_USB_CDC_ON_BOOT=1 ; Initialize the USB CDC (serial over USB) interface at the start of the program, even before the setup() function is executed.
; Communication over USB starts as soon as it powers on or resets, without waiting for the setup code to run.
-D ARDUINO_USB_MODE=0 ; Disables CDC mode and turns on OTG.
; In order to flash the firmware you had to set the device manually into boot mode by pressing the BOOT and the RESET button.
; The device stay in download mode after flashing so you had to press the RESET button once more.
-D BATTERY
-D SSD1306WIRE
build_flags_lilygo-t-display-s3 =
-D ARDUINO_USB_CDC_ON_BOOT=1 ; Initialize the USB CDC (serial over USB) interface at the start of the program, even before the setup() function is executed.
; Communication over USB starts as soon as it powers on or resets, without waiting for the setup code to run.
-D ARDUINO_USB_MODE=0 ; Disables CDC mode and turns on OTG.
; In order to flash the firmware you had to set the device manually into boot mode by pressing the BOOT and the RESET button.
; The device stay in download mode after flashing so you had to press the RESET button once more.
-D BOARD_HAS_PSRAM ; PSRAM not enabled by default
-D BATTERY
-D USER_SETUP_LOADED ; TFT_eSPI configuration setup defined in platformio.ini
-D ST7789_DRIVER
-D INIT_SEQUENCE_3 ; Using this initialisation sequence improves the display image
-D CGRAM_OFFSET
-D TFT_RGB_ORDER=TFT_RGB
-D TFT_INVERSION_ON
-D TFT_PARALLEL_8_BIT
-D TFT_WIDTH=170
-D TFT_HEIGHT=320
-D TFT_CS=6
-D TFT_DC=7
-D TFT_RST=5
-D TFT_WR=8
-D TFT_RD=9
-D TFT_D0=39
-D TFT_D1=40
-D TFT_D2=41
-D TFT_D3=42
-D TFT_D4=45
-D TFT_D5=46
-D TFT_D6=47
-D TFT_D7=48
-D TFT_BL=38
-D TFT_BACKLIGHT_ON=HIGH
-D LOAD_GLCD
-D LOAD_GFXFF
-D SMOOTH_FONT
[env]
platform = [email protected]
framework = arduino
board = esp32dev
board_build.f_flash = 80000000L
board_build.partitions = src/partitions_no_ota.csv
build_type = release ; release, test, debug
lib_deps = ${common.lib_deps}
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, default
;extra_scripts = pre:esp32_platform_version.py
[env:esp32dev]
build_flags = ${common.build_flags}
${common.build_flags_esp32}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
[env:esp32doit-devkit-v1]
board = esp32doit-devkit-v1
build_flags = ${common.build_flags}
${common.build_flags_esp32}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
[env:esp32doit-devkit-v1-ble]
board = esp32doit-devkit-v1
build_flags = ${common.build_flags}
${common.build_flags_esp32-ble}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
board_build.partitions = src/partitions_ota.csv
[env:esp32doit-devkit-v1-wifi]
board = esp32doit-devkit-v1
build_flags = ${common.build_flags}
${common.build_flags_esp32-wifi}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
board_build.partitions = src/partitions_ota.csv
[env:esp-wrover-kit]
board = esp-wrover-kit
build_flags = ${common.build_flags}
${common.build_flags_esp32}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
[env:heltec_wifi_kit_32]
board = heltec_wifi_kit_32
build_flags = ${common.build_flags}
${common.build_flags_heltec_wifi_kit_32}
lib_deps = ${common.lib_deps}
HelTecAutomation/Heltec ESP32 [email protected] ; https://github.com/HelTecAutomation/Heltec_ESP32 ; replacement of https://github.com/ThingPulse/esp8266-oled-ssd1306
[env:ttgo-t-eight]
build_flags = ${common.build_flags}
${common.build_flags_ttgo_t_eight}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
[env:ttgo-t-eight-ble]
build_flags = ${common.build_flags}
${common.build_flags_ttgo_t_eight-ble}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
[env:ttgo-t-eight-wifi]
build_flags = ${common.build_flags}
${common.build_flags_ttgo_t_eight-wifi}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
[env:ttgo-t-display]
build_flags = ${common.build_flags}
${common.build_flags_ttgo_t_display}
[env:lilygo-t-display]
platform = [email protected]
framework = arduino
board = lilygo-t-display
build_flags = ${common.build_flags}
${common.build_flags_lilygo_t_display}
; https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip
;upload_port = /dev/tty.SLAB_USBtoUART
;upload_port = COM5
;monitor_port = ${env:lilygo-t-display.upload_port}
;monitor_port = /dev/tty.SLAB_USBtoUART
[env:lilygo-t-display-s3]
platform = [email protected]
framework = arduino
board = lilygo-t-display-s3 ; https://docs.platformio.org/en/latest/boards/espressif32/lilygo-t-display-s3.html
board_build.partitions = src/partitions_lilygo-t-display-s3.csv
build_unflags = -D ARDUINO_USB_MODE=1 ; Undefine symbol defined in https://github.com/platformio/platform-espressif32/blob/master/boards/lilygo-t-display-s3.json
; to avoid redefinition warnings
build_flags = ${common.build_flags}
${common.build_flags_lilygo-t-display-s3}
lib_deps = ${common.lib_deps}
adafruit/Adafruit TinyUSB [email protected] ; https://github.com/adafruit/Adafruit_TinyUSB_Arduino
[env:bpi-leaf-s3]
platform = [email protected]
framework = arduino
board = bpi_leaf_s3 ; https://docs.platformio.org/en/latest/boards/espressif32/bpi_leaf_s3.html
board_build.partitions = src/partitions_bpi_leaf_s3.csv
build_flags = ${common.build_flags}
${common.build_flags_bpi_leaf_s3}
lib_deps = ${common.lib_deps}
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 [email protected] ; https://github.com/ThingPulse/esp8266-oled-ssd1306
adafruit/Adafruit TinyUSB [email protected] ; https://github.com/adafruit/Adafruit_TinyUSB_Arduino
;upload_port = /dev/cu.usbmodem14201 ; enter Bootloader mode to enable flash via USB-CDC: connect it via USB, hold BOOT button, press RST button once, then release BOOT button.
; RST to exit Bootloader mode
;monitor_port = ${env:bpi-leaf-s3.upload_port}
;build_type = debug
;debug_speed = 12000
;debug_tool = esp-builtin
;debug_init_break = tbreak setup