-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
143 lines (132 loc) · 3.76 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
; 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 = mega328p
[env:mega328p]
platform = atmelavr
framework = arduino
board = ATmega328P
board_build.f_cpu = 16000000L
build_unflags = -flto
build_flags =
-D MCU_ATMEGA328P
-D I2C_SLAVE_ADDR=0x37
monitor_port = ${env:Upload_UART.upload_port}
monitor_speed = 115200
upload_protocol = arduino
upload_port = /dev/ttyUSB0
board_upload.speed = ${env:fuses_bootloader.board_bootloader.speed}
lib_deps =
https://github.com/gordonthree/packmonlib
https://github.com/PaulStoffregen/Time
[env:Upload_UART]
upload_protocol = arduino
upload_port = /dev/ttyUSB0
board_upload.speed = ${env:fuses_bootloader.board_bootloader.speed}
[env:Upload_ISP]
upload_protocol = custom
upload_flags =
-C$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
-p$BOARD_MCU
-PUSB
-cusbasp
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
[env:fuses_bootloader]
board_hardware.oscillator = external
board_hardware.uart = uart0
board_bootloader.speed = 115200
board_hardware.bod = 2.7v
board_hardware.eesave = yes
upload_protocol = usbtiny
[env:ATmega4808]
platform = atmelmegaavr
framework = arduino
board = ATmega4808
board_build.f_cpu = 16000000L
board_hardware.oscillator = internal
board_build.variant = 32pin-standard
build_unflags =
build_flags = -DMCU_ATMEGA4808
monitor_speed = 115200
upload_protocol = ${env:Upload_UPDI.upload_protocol}
upload_flags =
lib_deps =
https://github.com/gordonthree/packmonlib
https://github.com/PaulStoffregen/Time
; Wire1
[env:ATmega4809]
framework = arduino
platform = atmelmegaavr
platform_packages =
framework-arduino-megaavr-megacorex
; tool-avrdude-megaavr @ 3.60300.220118 (6.3.0)
tool-avrdude-megaavr
; toolchain-atmelavr @ 3.70300.220127 (7.3.0) tool-avrdude-megaavr
toolchain-atmelavr
board = ATmega4809
board_build.variant = nano-every
board_build.f_cpu = 16000000L
board_hardware.oscillator = internal
build_unflags =
build_flags = -D MCU_NANOEVERY
-D I2C_SLAVE_ADDR=0x39
-mrelax
-lprintf_flt
;monitor_port = ${env:Every_Upload_UART.upload_port}
monitor_speed = 921600
monitor_port = /dev/ttyACM0
;upload_protocol = jtag2updi
upload_protocol = jtag2updi
upload_port = /dev/ttyACM0
board_upload.speed = 115200
;upload_protocol = xplainedmini_updi
upload_flags = -v
;extra_scripts = pre:reset.py
board_upload.use_1200bps_touch = yes
board_upload.wait_for_upload_port = yes
;board_upload.speed = ${env:every_fuses_bootloader.board_bootloader.speed}
lib_deps =
https://github.com/gordonthree/packmonlib
https://github.com/PaulStoffregen/Time
[env:nano_every]
;platform=MegaCoreX
platform = atmelmegaavr
framework = arduino
board = nano_every
board_build.f_cpu = 16000000L
board_hardware.oscillator = internal
;board_build.variant = nano-every
build_unflags =
build_flags = -D MCU_NANOEVERY
-D I2C_SLAVE_ADDR=0x39
-mrelax
-lprintf_flt
monitor_speed = 921600
monitor_port = /dev/ttyACM0
upload_protocol = jtag2updi
upload_port = /dev/ttyACM0
board_upload.speed = 115200
upload_flags =
lib_deps =
https://github.com/gordonthree/packmonlib
https://github.com/PaulStoffregen/Time
[env:every_fuses_bootloader]
; Upload protocol for used to set fuses/bootloader
upload_protocol = ${env:Upload_UPDI.upload_protocol}
upload_flags = -v
; Hardware settings
board_hardware.bod = 2.7v
board_hardware.eesave = yes
board_hardware.uart = no_bootloader
board_hardware.rstpin = reset
[env:Upload_UPDI]
; Upload protocol for UPDI upload
upload_protocol = jtag2updi
upload_flags =