-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
67 lines (61 loc) · 1.52 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
; SPDX-FileCopyrightText: 2023 NorthSec
;
; SPDX-License-Identifier: MIT
; 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 = default
; Default build, flash with USBasp
[env:default]
platform = atmelavr
framework = arduino
board = NsecConf2023
lib_deps =
adafruit/Adafruit NeoPixel@^1.10.7
adafruit/Adafruit GFX Library@^1.11.3
build_flags = '-DSSD1306_NO_SPLASH'
upload_protocol = usbasp
upload_port = usb
upload_flags =
; Erase the chip before flashing
-e
extra_scripts = post:scripts/post.py
test_filter = none
[env:program_via_AVRISP]
extends = env:default
upload_protocol = custom
upload_port = /dev/ttyUSB0
upload_flags =
-C
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-c
stk500v2
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
[env:native_tests]
platform = native
lib_deps =
throwtheswitch/Unity@^2.5.2
build_type = debug
test_build_src = true
build_src_filter = +scheduler.cpp
test_filter = native/*
debug_build_flags = -O0 -g3
[env:embedded_tests]
extends = env:default
lib_deps =
throwtheswitch/Unity@^2.5.2
test_port = /dev/ttyUSB0
test_filter = embedded/*
build_flags =
-D UNITY_INCLUDE_PRINT_FORMATTED