Supporting multiple boards
This commit is contained in:
@@ -3,10 +3,25 @@ name = "{{PROJECT_NAME}}"
|
||||
anvil_version = "{{ANVIL_VERSION}}"
|
||||
|
||||
[build]
|
||||
fqbn = "{{FQBN}}"
|
||||
default = "{{BOARD_NAME}}"
|
||||
warnings = "more"
|
||||
include_dirs = ["lib/hal", "lib/app"]
|
||||
extra_flags = ["-Werror"]
|
||||
|
||||
[monitor]
|
||||
baud = {{BAUD}}
|
||||
|
||||
[boards.{{BOARD_NAME}}]
|
||||
fqbn = "{{FQBN}}"
|
||||
|
||||
# -- Additional boards -----------------------------------------------------
|
||||
# Add more boards here. Use --board NAME with any script:
|
||||
# upload --board mega
|
||||
# build.bat --board nano
|
||||
#
|
||||
# [boards.mega]
|
||||
# fqbn = "arduino:avr:mega:cpu=atmega2560"
|
||||
#
|
||||
# [boards.nano]
|
||||
# fqbn = "arduino:avr:nano:cpu=atmega328"
|
||||
# baud = 9600
|
||||
|
||||
Reference in New Issue
Block a user