-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
283 lines (247 loc) · 7.26 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
276
277
278
279
280
281
282
283
; 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
; For ESP32 specific info visit
; https://docs.platformio.org/en/latest/platforms/espressif32.html
[platformio]
description = eStreamPlayer32-vs1053-pio
default_envs = adafruit_feather_esp32s3_reversetft
[user]
build_flags =
; SSID_NAME and SSID_PASSWORD are stored in 'include/secrets.h' as shown here:
;#ifndef SECRETS
;#define SECRETS
;const char *SSID_NAME= "WiFi networkname";
;const char *SSID_PASSWORD = "WiFi password";
;#endif
-D SCRIPT_URL=\"http://192.168.0.50/music/eSP32_vs1053.php\"
-D LIBRARY_USER=\"\" ; local library
-D LIBRARY_PWD=\"\"
; If SET_STATIC_IP is set to true then STATIC_IP, GATEWAY, SUBNET and PRIMARY_DNS have to be set to some sane values
-D SET_STATIC_IP=false
-D STATIC_IP=\"192.168.0.20\"
-D GATEWAY=\"192.168.0.1\"
-D SUBNET=\"255.255.255.0\"
-D PRIMARY_DNS=\"192.168.0.10\"
-D NTP_POOL=\"nl.pool.ntp.org\"
-D TIMEZONE=\"CET-1CEST,M3.5.0/2,M10.5.0/3\" ; /* Central European Time - see https://sites.google.com/a/usapiens.com/opnode/time-zones
[env]
platform = espressif32
framework = arduino ;, espidf
check_tool = cppcheck
check_flags = --enable=all
lib_ldf_mode = chain+
build_unflags = -std=c++11
build_flags =
${user.build_flags}
-std=c++17
-D CORE_DEBUG_LEVEL=3
;ESP_LOG_NONE, 0
;ESP_LOG_ERROR, 1
;ESP_LOG_WARN, 2
;ESP_LOG_INFO, 3
;ESP_LOG_DEBUG, 4
;ESP_LOG_VERBOSE 5
-Wall
-Werror
-Wextra
-Wunreachable-code
!echo '-D GIT_VERSION=\\"'$(git describe --tags --always)'\\"'
platform_packages =
platformio/framework-arduinoespressif32@^3.20011.230801
lib_deps =
esphome/AsyncTCP-esphome@^2.0.1
esphome/ESPAsyncWebServer-esphome@^3.0.1
VS1053 = https://github.com/baldram/ESP_VS1053_Library#824f82c
;CelliesProjects/ESP32_VS1053_Stream@^2.0.6
ESP32_VS1053_Stream = https://github.com/CelliesProjects/ESP32_VS1053_Stream#affe67d ;test-no-interrupts
upload_speed = 921600
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board_build.f_cpu = 240000000L
board_build.partitions = noota_ffat.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.filesystem = fatfs
[env:esp32dev]
board = esp32dev
board_build.mcu = esp32
build_flags =
${env.build_flags}
-D VS1053_CS_PIN=5
-D VS1053_DCS_PIN=21
-D VS1053_DREQ_PIN=22
-D SPI_CLK_PIN=18
-D SPI_MISO_PIN=19
-D SPI_MOSI_PIN=23
; XRST from VS1053 connects to ENABLE or RESET on esp32
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:lolin_s2_mini]
board = lolin_s2_mini
board_build.mcu = esp32s2
upload_port = /dev/ttyACM0
build_flags =
${env.build_flags}
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D VS1053_CS_PIN=12
-D VS1053_DCS_PIN=33
-D VS1053_DREQ_PIN=35
-D SPI_CLK_PIN=7
-D SPI_MISO_PIN=9
-D SPI_MOSI_PIN=11
; XRST from VS1053 connects to ENABLE or RESET on esp32
[env:lolin_s3_mini]
board = lolin_s3_mini
board_build.mcu = esp32s3
upload_port = /dev/ttyACM0
build_flags =
${env.build_flags}
-D ARDUINO_USB_CDC_ON_BOOT=1
;-D ARDUINO_USB_DFU_ON_BOOT=0
-D VS1053_CS_PIN=10
-D VS1053_DCS_PIN=35
-D VS1053_DREQ_PIN=36
-D SPI_CLK_PIN=12
-D SPI_MISO_PIN=13
-D SPI_MOSI_PIN=11
; XRST from VS1053 connects to ENABLE or RESET on esp32
[env:ttgo-t7-v13-mini32]
platform = espressif32
board = ttgo-t7-v13-mini32
build_flags =
${env.build_flags}
-D VS1053_CS_PIN=5
-D VS1053_DCS_PIN=21
-D VS1053_DREQ_PIN=22
-D SPI_CLK_PIN=18
-D SPI_MISO_PIN=19
-D SPI_MOSI_PIN=23
; XRST from VS1053 connects to ENABLE or RESET on esp32
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
[env:ttgo-t7-v14-mini32]
platform = espressif32
board = ttgo-t7-v13-mini32
build_flags =
${env.build_flags}
-D VS1053_CS_PIN=5
-D VS1053_DCS_PIN=21
-D VS1053_DREQ_PIN=22
-D SPI_CLK_PIN=18
-D SPI_MISO_PIN=19
-D SPI_MOSI_PIN=23
; XRST from VS1053 connects to ENABLE or RESET on esp32
-D BOARD_HAS_PSRAM
;-mfix-esp32-psram-cache-issue
;-mfix-esp32-psram-cache-strategy=memw
[env:esp32s3box]
platform = espressif32
board = esp32s3box
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
; board_build.flash_mode = qio
build_flags =
${env.build_flags}
-D VS1053_CS_PIN=10
-D VS1053_DCS_PIN=21
-D VS1053_DREQ_PIN=42
-D SPI_CLK_PIN=12
-D SPI_MISO_PIN=13
-D SPI_MOSI_PIN=11
; XRST from VS1053 connects to pin 41 that has to be HIGH to enable the codec
-D VS1053_RST_PIN=41
[env:esp32c3] ;not yet working
platform = espressif32
board = esp32c3
board_build.mcu = esp32c3
build_flags =
${env.build_flags}
-D VS1053_CS_PIN=10
-D VS1053_DCS_PIN=21
-D VS1053_DREQ_PIN=42
-D SPI_CLK_PIN=12
-D SPI_MISO_PIN=13
-D SPI_MOSI_PIN=11
; XRST from VS1053 connects to ENABLE or RESET on the esp32c3
[env:m5stack-core-esp32] ; M5Stack grey works
board = m5stack-core-esp32
upload_speed = 460800
build_flags =
${env.build_flags}
-D VS1053_CS_PIN=13
-D VS1053_DCS_PIN=26
-D VS1053_DREQ_PIN=36
-D SPI_CLK_PIN=18
-D SPI_MISO_PIN=19
-D SPI_MOSI_PIN=23
; XRST from VS1053 connects to ENABLE (EN) on M5Stack M-BUS
-D M5STACK_M5GFX
lib_deps =
${env.lib_deps}
m5stack/M5GFX@^0.1.11
[env:m5stack-fire] ; M5Stack Fire - works
board = m5stack-fire
;upload_speed = 460800
build_flags =
${env.build_flags}
-D VS1053_CS_PIN=13
-D VS1053_DCS_PIN=26
-D VS1053_DREQ_PIN=36
-D SPI_CLK_PIN=18
-D SPI_MISO_PIN=19
-D SPI_MOSI_PIN=23
; XRST from VS1053 connects to ENABLE (EN) on M5Stack M-BUS
-D M5STACK_M5GFX
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
lib_deps =
${env.lib_deps}
m5stack/M5GFX@^0.1.11
[env:m5stack-core2]
board = m5stack-core2
;upload_speed = 460800
build_flags =
${env.build_flags}
-D VS1053_CS_PIN=19
-D VS1053_DCS_PIN=26
-D VS1053_DREQ_PIN=36
-D SPI_CLK_PIN=18
-D SPI_MISO_PIN=38
-D SPI_MOSI_PIN=23
; XRST from VS1053 connects to ENABLE (EN) on M5Stack M-BUS
-D M5STACK_M5GFX
lib_deps =
${env.lib_deps}
m5stack/M5GFX@^0.1.11
[env:adafruit_feather_esp32s3_reversetft]
; This is a setup for
; 'Adafruit ESP32-S3 Reverse TFT Feather' https://www.adafruit.com/product/5691
; PLUS
;'Adafruit Music Maker FeatherWing' https://www.adafruit.com/product/3357
platform = espressif32
board = adafruit_feather_esp32s3_reversetft
board_build.mcu = esp32s3
upload_protocol = esptool
build_flags =
-D ST7789_TFT
-D ARDUINO_USB_MODE=1 ; fix for not resetting after upload
${env.build_flags}
-D VS1053_CS_PIN=6
-D VS1053_DCS_PIN=10
-D VS1053_DREQ_PIN=9
-D SPI_CLK_PIN=36
-D SPI_MISO_PIN=37
-D SPI_MOSI_PIN=35
-D BOARD_HAS_PSRAM
lib_deps =
${env.lib_deps}
adafruit/Adafruit ST7735 and ST7789 Library@^1.10.3