-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
50 lines (46 loc) · 1.27 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
; 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 = atmega328
[env:uno]
platform = atmelavr
board = uno
framework = arduino
monitor_speed = 115200
lib_deps =
fortyseveneffects/MIDI Library@^5.0.2
fastled/FastLED@^3.5.0
paulstoffregen/AltSoftSerial@^1.4
[env:atmega328]
platform = atmelavr
board = uno
framework = arduino
lib_deps =
fortyseveneffects/MIDI Library@^5.0.2
fastled/FastLED@^3.5.0
paulstoffregen/AltSoftSerial@^1.4
extra_scripts =
pre:extra_script.py
post:extra_script.py
; Copied "Arduino as ISP" from:
; https://docs.platformio.org/en/latest/platforms/atmelavr.html#upload-using-programmer
upload_protocol = custom
upload_speed = 19200
upload_flags =
-C
; use "tool-avrdude-megaavr" for the atmelmegaavr platform
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
atmega328p
-b
$UPLOAD_SPEED
-c
usbtiny
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i