-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
183 lines (147 loc) · 4.51 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
; The configuration file for PlatformIO
;
; This file is setup with a lot of suggestions for libraries etc.
;
; You can delete them as you wish :)
;
[platformio]
description = My cool project
; This is the default environment that will be used when you run `pio run`
default_envs = raspberrypi-pico
[env]
framework = arduino
; Use C++ version 17
build_unflags = -std=gnu++11
; Support C++ 17 and enable some warnings
build_flags = -std=gnu++17 -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function -Wno-format-extra-args
; Use clang-tidy when runnning `pio check`
; https://docs.platformio.org/en/stable/advanced/static-code-analysis/tools/clang-tidy.html
check_tool = clangtidy
; Serial monitor speed, make sure this is matched in Serial.begin()
monitor_speed = 115200
# Common global libraries. Uncomment any of these to include them in the build.
lib_deps =
# USB support
# Adafruit TinyUSB Library
# MIDI communication – send MIDI messages over USB or physical MIDI ports
# https://github.com/FortySevenEffects/arduino_midi_library
# OSC communication – senc control messages over the network
# cnmat/OSC
# Smooth reading of analog signals, eg potentiometers, analog sensors, etc.
# dxinteractive/ResponsiveAnalogRead
# Debounce buttons – removes noise from button presses
# thomasfredericks/Bounce2
# SPI
SPI
# I2C
#Wire
# DNSServer
# DNSServer
# Send commands to this board over serial
# ppedro74/SerialCommands
# Schedule tasks, timers, etc.
# arkhipenko/TaskScheduler
; Audio Tools
; This library has a TON of audio related stuff
; https://github.com/pschatzmann/arduino-audio-tools.git
[env:raspberrypi-pico]
; The Raspberry Pi Pico
; Link: https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html
; For more information about the platformio support:
; https://arduino-pico.readthedocs.io/en/latest/platformio.html
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
board = pico
board_build.mcu = rp2040
board_build.f_cpu = 133000000L
upload_protocol = picotool
; in reference to a board = pico config (2MB flash)
; Flash Size: 2MB (Sketch: 1MB, FS:1MB)
; board_build.filesystem_size = 1m
; Flash Size: 2MB (No FS)
; board_build.filesystem_size = 0m
; Flash Size: 2MB (Sketch: 0.5MB, FS:1.5MB)
; board_build.filesystem_size = 1.5m
; Extend build flags from the global section to enable TinyUSB support
build_flags = ${env.build_flags} -DUSE_TINYUSB
lib_deps =
${env.lib_deps}
# USB support
Adafruit TinyUSB Library
[env:rpipico2]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
# platform = raspberrypi
board = rpipico2
board_build.core = earlephilhower
; Additional build flags for Pico 2 here
build_flags =
${env.build_flags}
; Additional libraries for Pico 2 here
lib_deps =
${env.lib_deps}
[env:raspberrypi-picow]
; Extends the above to use picow instead of pico board
extends = env:raspberrypi-pico
; BTC and BLE
build_flags = ${env.build_flags} -DUSE_TINYUSB -DPIO_FRAMEWORK_ARDUINO_ENABLE_BLUETOOTH
lib_deps =
${env.lib_deps}
# USB support
Adafruit TinyUSB Library
# WIFI support
# WiFi
[env:esp32dev]
platform = espressif32
board = esp32dev
[env:nodemcuv2-esp8266]
; The NodeMCU v3 board based on the ESP8266
; Commonly found on Ebay, Aliexpress, etc.
# build_flags = ${env.build_flags}
platform = espressif8266
board = nodemcuv2
lib_deps =
${env.lib_deps}
# Enable WIFI on ESP8266
# ESP8266WiFi
# Webserver on ESP8266
# ESP8266WebServer
# WIFI Manager
# https://github.com/tzapu/WiFiManager
[env:teensy41]
platform = teensy
board = teensy41
build_flags = ${env.build_flags} -DUSB_MIDI_SERIAL
[env:teensy40]
platform = teensy
board = teensy40
build_flags = ${env.build_flags} -DUSB_MIDI_SERIAL
; Teensy LC
[env:teensylc]
platform = teensy
board = teensylc
; Additional build flags for Teensy LC here
build_flags =
${env.build_flags}
; Additional libraries for Teensy LC here
lib_deps =
${env.lib_deps}
; Adafruit Feather ESP32-S2
[env:adafruit_feather_esp32s2]
platform = espressif32
board = adafruit_feather_esp32s2
; Additional build flags for Adafruit Feather ESP32-S2 here
build_flags =
${env.build_flags}
; Additional libraries for Adafruit Feather ESP32-S2 here
lib_deps =
${env.lib_deps}
; Adafruit ESP32 Feather
[env:featheresp32]
platform = espressif32
board = featheresp32
; Additional build flags for Adafruit ESP32 Feather here
build_flags =
${env.build_flags}
; Additional libraries for Adafruit ESP32 Feather here
lib_deps =
${env.lib_deps}