-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
355 lines (347 loc) · 8.49 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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
; 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]
default_envs = pcb
[env]
platform = https://github.com/maxgerhardt/platform-raspberrypi
framework = arduino
extra_scripts=pre:add_git_branch.py
board = seeed_xiao_rp2040
board_build.core = earlephilhower
board_build.filesystem_size = 0.5m
build_flags =
-DUSE_TINYUSB
-DUSB_MIDI_VID=0x1337
-DUSB_MIDI_PID=0xBEEF
-DUSB_MIDI_MANUFACTURER="\"TyrellCorp\""
-DUSB_MIDI_PRODUCT="\"Microlidian\""
-DUSE_DINMIDI
-DMIDI_SERIAL_SPIO
-DMIDI_SERIAL_OUT_PIN=D6
-DENCODER_DURING_SETUP
-DENABLE_SCREEN
-DTFT_BODMER
-DBODMER_SPRITE
-DENABLE_LITTLEFS
;-DDEBUG_RP2040_PORT=Serial ; for debugging LittleFS
-DENABLE_CALIBRATION_STORAGE
-DLOAD_CALIBRATION_ON_BOOT
-DFAST_VOLTAGE_READS
-DENABLE_CLOCK_INPUT_CV
-DPARAMETER_INPUT_GRAPH_HEIGHT=40
-DDISABLE_PARAMETER_INPUT_SELECTORS ; don't allow changing parameter slot inputs -- saves 50K of RAM while we come up with a better way to do this
-DPARAMETER_INPUTS_USE_OUTPUT_POLARITY
;-DPARAMETER_INPUTS_USE_CALLBACKS
-DALT_MENU_POSITIONING ; use alternate mymenu positioning logic
-DRP2040_PIO_SPI
-DDISABLE_ALL_LIBRARY_WARNINGS
-DSCREEN_ROTATION=3
-DTFT_SCLK=D8
-DTFT_MOSI=D10
-DTFT_MISO=-1
-DTFT_CS=D7
-DTFT_RST=-1
;-DTFT_DC=D0 ;; breadboard version has DC on D0 and back button on D9
-DTFT_DC=D9
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_FONT8N=1
-DLOAD_GFXFF
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=50000000
-DFLASHMEM="" ; for compatibility with Teensy code that expects FLASHMEM
-DFASTRUN="" ; for compatibility with Teensy code that expects FASTRUN
lib_deps =
LittleFS
Encoder
Bounce2
MIDI Library
;adafruit/Adafruit TinyUSB Library
vortigont/LinkedList
mymenu
midihelpers
RobTillaart/ADS1X15@^0.4.5
parameters
ArxTypeTraits
khoih-prog/Functional-Vlpp@^1.0.2
lib_extra_dirs =
lib
C:\Users\doctea\Documents\Arduino\my_libraries
upload_port = COM5
monitor_port = COM5
[env:pcbsoft]
; comment out these lines if not using raspberry debug probe
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
debug_speed = 10000
upload_speed = 10000
BUILD_TYPE=debug
debug_build_flags = -O0 -g -ggdb
build_flags =
#-DCFG_TUD_CDC=0
;-DUSE_UCLOCK
;-DUSE_UCLOCK_GENERIC
-DUSE_TINYUSB
-DUSB_MIDI_VID=0x1337
-DUSB_MIDI_PID=0xBEEF
-DUSB_MIDI_MANUFACTURER="\"TyrellCorp\""
-DUSB_MIDI_PRODUCT="\"Microlidian\""
-DUSE_DINMIDI
-DMIDI_SERIAL_SPIO
;-DMIDI_SERIAL_HARDWARE
-DMIDI_SERIAL_OUT_PIN=D6
-DBUILD_PCB
-DENCODER_DURING_SETUP
-DENABLE_EUCLIDIAN
-DENABLE_ENVELOPES
-DENABLE_SCALES
-DENABLE_PARAMETERS
-DENABLE_SCREEN
-DTFT_BODMER
-DBODMER_SPRITE
-DENABLE_STORAGE
-DENABLE_LITTLEFS
;;-DDEBUG_RP2040_PORT=Serial ; for debugging LittleFS
-DENABLE_CALIBRATION_STORAGE
;-DPARAMETER_INPUTS_USE_CALLBACKS
-DLOAD_CALIBRATION_ON_BOOT
-DFAST_VOLTAGE_READS
-DENABLE_CLOCK_INPUT_CV
-DPARAMETER_INPUT_GRAPH_HEIGHT=40
;-DDISABLE_PARAMETER_INPUT_SELECTORS
-DALT_MENU_POSITIONING ; use alternate mymenu positioning logic
-DRP2040_PIO_SPI
-DDISABLE_ALL_LIBRARY_WARNINGS
-DSCREEN_ROTATION=1
-DTFT_SCLK=D8
-DTFT_MOSI=D10
-DTFT_MISO=-1
-DTFT_CS=D7
-DTFT_RST=-1
;-DTFT_DC=D0 ;; breadboard version has DC on D0 and back button on D9
-DTFT_DC=D9
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DLOAD_GLCD=1
;-DLOAD_FONT2=1
;-DLOAD_FONT4=1
;-DLOAD_FONT6=1
;-DLOAD_FONT7=1
;-DLOAD_FONT8=1
;-DLOAD_FONT8N=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=50000000
-DFLASHMEM="" ; for compatibility with Teensy code that expects FLASHMEM
-DFASTRUN="" ; for compatibility with Teensy code that expects FASTRUN
upload_port = COM3
monitor_port = COM5
lib_archive = no
lib_deps =
SimplyAtomic=https://github.com/wizard97/SimplyAtomic
LittleFS
Encoder
Bounce2@^2.71
MIDI Library
;SdFat
Adafruit TinyUSB Library=https://github.com/doctea/Adafruit_TinyUSB_Arduino
vortigont/LinkedList
mymenu
midihelpers
RobTillaart/ADS1X15@^0.4.5
parameters
ArxTypeTraits
khoih-prog/Functional-Vlpp@^1.0.2
TFT_eSPI
uClock=https://github.com/doctea/uClock
lib_extra_dirs =
lib
C:\Users\doctea\Documents\Arduino\my_libraries
[env:pcb]
; comment out these lines if not using raspberry debug probe
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
debug_speed = 10000
upload_speed = 10000
BUILD_TYPE=debug
debug_build_flags = -O0 -g -ggdb
build_flags =
;-DCFG_TUD_CDC=0
;-DUSE_UCLOCK
;-DUSE_UCLOCK_GENERIC
-DUSE_TINYUSB
-DUSB_MIDI_VID=0x1337
-DUSB_MIDI_PID=0xBEEF
-DUSB_MIDI_MANUFACTURER="\"TyrellCorp\""
-DUSB_MIDI_PRODUCT="\"Microlidian\""
-DUSE_DINMIDI
-DMIDI_SERIAL_SPIO
;-DMIDI_SERIAL_HARDWARE
-DMIDI_SERIAL_OUT_PIN=D6
-DBUILD_PCB
-DENCODER_DURING_SETUP
-DENABLE_EUCLIDIAN
-DENABLE_ENVELOPES
-DENABLE_SCALES
-DENABLE_PARAMETERS
-DENABLE_SCREEN
-DENABLE_CV_INPUT=0x48
-DTFT_BODMER
-DBODMER_SPRITE
-DENABLE_STORAGE
-DENABLE_LITTLEFS
;;-DDEBUG_RP2040_PORT=Serial ; for debugging LittleFS
-DENABLE_CALIBRATION_STORAGE
;-DPARAMETER_INPUTS_USE_CALLBACKS
-DLOAD_CALIBRATION_ON_BOOT
-DFAST_VOLTAGE_READS
-DENABLE_CLOCK_INPUT_CV
-DPARAMETER_INPUT_GRAPH_HEIGHT=40
;-DDISABLE_PARAMETER_INPUT_SELECTORS
-DALT_MENU_POSITIONING ; use alternate mymenu positioning logic
-DRP2040_PIO_SPI
-DDISABLE_ALL_LIBRARY_WARNINGS
-DSCREEN_ROTATION=1
-DTFT_SCLK=D8
-DTFT_MOSI=D10
-DTFT_MISO=-1
-DTFT_CS=D7
-DTFT_RST=-1
;-DTFT_DC=D0 ;; breadboard version has DC on D0 and back button on D9
-DTFT_DC=D9
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DLOAD_GLCD=1
;-DLOAD_FONT2=1
;-DLOAD_FONT4=1
;-DLOAD_FONT6=1
;-DLOAD_FONT7=1
;-DLOAD_FONT8=1
;-DLOAD_FONT8N=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=50000000
-DFLASHMEM="" ; for compatibility with Teensy code that expects FLASHMEM
-DFASTRUN="" ; for compatibility with Teensy code that expects FASTRUN
upload_port = COM5
monitor_port = COM5
lib_archive = no
lib_deps =
SimplyAtomic=https://github.com/wizard97/SimplyAtomic
LittleFS
Encoder
Bounce2@^2.71
MIDI Library
;SdFat
Adafruit TinyUSB Library=https://github.com/doctea/Adafruit_TinyUSB_Arduino
vortigont/LinkedList
mymenu
midihelpers
RobTillaart/ADS1X15@^0.5.0
parameters
seqlib
ArxTypeTraits
khoih-prog/Functional-Vlpp@^1.0.2
TFT_eSPI
uClock=https://github.com/doctea/uClock
lib_extra_dirs =
lib
C:\Users\doctea\Documents\Arduino\my_libraries
[env:breadboard]
build_flags =
-DUSE_TINYUSB
-DUSB_MIDI_VID=0x1337
-DUSB_MIDI_PID=0xBEEF
-DUSB_MIDI_MANUFACTURER="\"TyrellCorp\""
-DUSB_MIDI_PRODUCT="\"Microlidian\""
-DUSE_DINMIDI
-DMIDI_SERIAL_SPIO
-DMIDI_SERIAL_OUT_PIN=D6
-DENABLE_SCREEN
-DENCODER_DURING_SETUP
-DTFT_BODMER
-DBODMER_SPRITE
-DENABLE_STORAGE
-DENABLE_LITTLEFS
;-DDEBUG_RP2040_PORT=Serial ; for debugging LittleFS
-DENABLE_CALIBRATION_STORAGE
;-DPARAMETER_INPUTS_USE_CALLBACKS
-DLOAD_CALIBRATION_ON_BOOT
-DFAST_VOLTAGE_READS
-DENABLE_CLOCK_INPUT_CV
-DPARAMETER_INPUT_GRAPH_HEIGHT=40
-DDISABLE_PARAMETER_INPUT_SELECTORS
-DALT_MENU_POSITIONING ; use alternate mymenu positioning logic
-DRP2040_PIO_SPI
-DDISABLE_ALL_LIBRARY_WARNINGS ; hide warnings from tft_epsi library
-DSCREEN_ROTATION=3
-DTFT_SCLK=D8
-DTFT_MOSI=D10
-DTFT_MISO=-1
-DTFT_CS=D7
-DTFT_RST=-1
-DTFT_DC=D0 ;; breadboard version has DC on D0 and back button on D9
;-DTFT_DC=D9
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_FONT8N=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=50000000
-DFLASHMEM="" ; for compatibility with Teensy code that expects FLASHMEM
-DFASTRUN="" ; for compatibility with Teensy code that expects FASTRUN
-DBUILD_BREADBOARD
upload_port = \\.\COM30
monitor_port = \\.\COM30
;; deprecated now that we've got bodmer+dma version working nicely
;[env:adagfx]
;build_flags =
;-DUSE_TINYUSB
;-DENABLE_SCREEN
;-DTFT_ST7789
;-DTFT_SCLK=D8
;-DTFT_MOSI=D10
;-DTFT_MISO=-1
;-DTFT_CS=D7
;-DTFT_RST=-1
;-DTFT_DC=D0
;lib_deps =
;Adafruit ST7735 and ST7789 Library
;Adafruit GFX Library
;Adafruit_GFX_Buffer
;LittleFS
;Encoder
;Bounce2
;MIDI Library
;adafruit/Adafruit TinyUSB Library
;LinkedList
;mymenu
;midihelpers
;lib_ignore = Bodmer/TFT_eSPI