Skip to content

Commit

Permalink
Supports Arduino Nano by providing a new Arduino configuration. (#195)
Browse files Browse the repository at this point in the history
* Supports Arduino Nano by providing a new Arduino configuration.

Signed-off-by: Agustin Alba Chicar <[email protected]>

* Uses extend feature to define common configurations for each target board.

Signed-off-by: Agustin Alba Chicar <[email protected]>

---------

Signed-off-by: Agustin Alba Chicar <[email protected]>
  • Loading branch information
agalbachicar authored Dec 28, 2023
1 parent 2e552b5 commit b4debd2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions andino_firmware/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,23 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:uno]
; Base configuration for Atmel AVR based Arduino boards.
[base_atmelavr]
platform = atmelavr
board = uno
framework = arduino
monitor_speed = 57600

; Base configuration for build tools.
[base_build]
build_flags =
-Wall -Wextra

; Environment for Arduino Uno.
[env:uno]
extends = base_atmelavr, base_build
board = uno

; Environment for Arduino Nano.
[env:nanoatmega328]
extends = base_atmelavr, base_build
board = nanoatmega328

0 comments on commit b4debd2

Please sign in to comment.