-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
104 lines (88 loc) · 2.47 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
; 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
[env:attiny85]
platform = atmelavr
board = attiny85
framework = arduino
build_src_filter =
-<client.*>
+<main.*>
-<../test/*.*>
upload_protocol = stk500v1
upload_flags =
-P$UPLOAD_PORT
-b$UPLOAD_SPEED
-v
upload_port = /dev/cu.usbmodem1422201
upload_speed = 19200
board_fuses.lfuse = 0xE2
board_fuses.hfuse = 0xDF
board_fuses.efuse = 0xFF
[env:testing]
platform = native
build_flags =
-D FIRMWARE_PATH="\"${platformio.build_dir}/attiny85/firmware.elf\""
-I${platformio.packages_dir}/tool-simavr/include/simavr
-L${platformio.packages_dir}/tool-simavr/lib
-lsimavr
-lelf
--verbose
build_src_filter =
-<client.*>
platform_packages =
platformio/tool-simavr
platformio/toolchain-atmelavr
test_framework = unity
test_speed = 9600
[env:client_macos]
platform = native
build_flags =
-D FIRMWARE_PATH="\"${platformio.build_dir}/attiny85/firmware.elf\""
-I${platformio.packages_dir}/tool-simavr/include/simavr
-L${platformio.packages_dir}/tool-simavr/lib
-I/usr/local/include/SDL2/
-lsimavr
-lelf
-lSDL2
--verbose
build_src_filter =
+<../client/client.*>
-<main.*>
-<../test/*.*>
platform_packages =
platformio/tool-simavr
platformio/toolchain-atmelavr
upload_speed = 115200
[env:client_windows]
platform = native
# On windows, I haven't made the path parameters expand properly
build_flags =
-D FIRMWARE_PATH=\"C:/Users/Nickl/Projects/ATTINY_dimmer/.pio/build/attiny85/firmware.elf\" # Change to the project location
-IC:/Users/Nickl/dev-deps/tool-simavr/include # Change to where you've installed simavr
-LC:/Users/Nickl/dev-deps/tool-simavr/lib # Change to where you've installed simavr
-IC:/msys64/mingw64/include/ # Change to where you've installed mingw
-LC:/msys64/mingw64/lib/ # Change to where you've installed mingw
-lSDL2
-lSDL2main
-lsimavr
-lelf
-lmingw32
-lws2_32
--verbose
build_src_filter =
+<../client/client.*>
-<main.*>
-<../test/*.*>
platform_packages =
platformio/tool-simavr
platformio/toolchain-atmelavr
upload_speed = 115200
[test]
framework = unity