1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Added support for Uno Wifi R2 and Nano Every

This commit is contained in:
David Cutting 2020-08-15 00:11:28 -06:00
parent 8f4e4f332a
commit 867c949674
2 changed files with 10 additions and 3 deletions

View File

@ -92,7 +92,7 @@ void setup() {
CommManager::registerInterface(new SerialInterface(Serial));
Wire.begin(); // Needed for EEPROM to work
EEStore::init(&Serial);
#elif defined(ARDUINO_ARCH_AVR)
#elif defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR)
CommManager::registerInterface(new SerialInterface(Serial));
EEStore::init(&Serial);
#endif

View File

@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = samd21, mega2560, mega328
default_envs = samd21, mega2560, mega328, unowifiR2
src_dir = .
[env]
@ -40,4 +40,11 @@ board = uno
framework = arduino
lib_deps =
${env.lib_deps}
DIO2
DIO2
[env:unowifiR2]
platform = atmelmegaavr
board = uno_wifi_rev2
framework = arduino
lib_deps =
${env.lib_deps}