-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
45 lines (40 loc) · 1.2 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
; 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 = attiny85
; Don't build native by default since we use that only for unit-tests
[env:attiny85]
platform = atmelavr
board = attiny85
build_flags = -std=c++17 -DLIGHT_WS2812_AVR -Wall
lib_deps = https://github.com/cpldcpu/light_ws2812.git
board_build.f_cpu = 8000000L
board_hardware.oscillator = internal
board_hardware.eesave = yes
upload_protocol = custom
upload_port = /dev/cu.usbmodem14135101
upload_speed = 19200
upload_flags =
-C
; use "tool-avrdude-megaavr" for the atmelmegaavr platform
$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-b
$UPLOAD_SPEED
-c
stk500v1
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
; Native environment, used only for unit tests. Not built by default.
[env:native]
platform = native
build_flags = -std=c++17