-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
85 lines (75 loc) · 1.85 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
; 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
; use avriisp mkII
[env:program_via_AVRISPmkII]
board_build.mcu = atmega328p
board_build.f_cpu = 16000000L
platform = atmelavr
board = ATmega328P
framework = arduino
upload_protocol = custom
upload_port = usb
upload_flags =
-C
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-c
avrispmkii
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
lib_deps = yarn
paulstoffregen/Encoder@^1.4.4
adafruit/Adafruit GFX Library@^1.11.9
adafruit/Adafruit SSD1306@^2.5.9
adafruit/Adafruit BusIO@^1.15.0
[env:ATmega328P]
platform = atmelavr
board = nanoatmega328
; change microcontroller
board_build.mcu = atmega328p
framework = arduino
; change MCU frequency
board_build.f_cpu = 16000000L
lib_deps =
paulstoffregen/Encoder@^1.4.4
adafruit/Adafruit GFX Library@^1.11.9
adafruit/Adafruit SSD1306@^2.5.9
adafruit/Adafruit BusIO@^1.15.0i
[platformio]
src_dir = code/src
lib_dir = code/lib
include_dir = code/include
test_dir = code/test
data_dir = code/data
[env:program_via_USBasp]
board_build.mcu = atmega328p
board_build.f_cpu = 16000000L
platform = atmelavr
board = ATmega328P
framework = arduino
upload_protocol = custom
upload_port = usb
upload_flags =
-C
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-c
usbasp
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
lib_deps =
paulstoffregen/Encoder@^1.4.4
adafruit/Adafruit GFX Library@^1.11.9
adafruit/Adafruit SSD1306@^2.5.9
adafruit/Adafruit BusIO@^1.15.0