From 8f4e4f332a5bc855fc26b197e37f71b5d6e68c9e Mon Sep 17 00:00:00 2001 From: David Cutting Date: Fri, 14 Aug 2020 11:59:03 -0600 Subject: [PATCH 1/2] Renamed library dependencies --- CommandStation-DCC.ino => CommandStation-EX.ino | 2 +- platformio.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename CommandStation-DCC.ino => CommandStation-EX.ino (99%) diff --git a/CommandStation-DCC.ino b/CommandStation-EX.ino similarity index 99% rename from CommandStation-DCC.ino rename to CommandStation-EX.ino index 94ba85b..aaa2641 100644 --- a/CommandStation-DCC.ino +++ b/CommandStation-EX.ino @@ -18,7 +18,7 @@ */ #include -#include +#include #include #include "Config.h" diff --git a/platformio.ini b/platformio.ini index b16d180..f9e36e7 100644 --- a/platformio.ini +++ b/platformio.ini @@ -14,7 +14,7 @@ src_dir = . [env] lib_deps = - https://github.com/DCC-EX/CommandStation.git#master + https://github.com/DCC-EX/DCC-EX-Lib.git#master https://github.com/davidcutting42/ArduinoTimers.git#master [env:samd21] From 867c949674abfa9707089ffbba72ccf641860d6f Mon Sep 17 00:00:00 2001 From: David Cutting Date: Sat, 15 Aug 2020 00:11:28 -0600 Subject: [PATCH 2/2] Added support for Uno Wifi R2 and Nano Every --- CommandStation-EX.ino | 2 +- platformio.ini | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino index aaa2641..c99ebc0 100644 --- a/CommandStation-EX.ino +++ b/CommandStation-EX.ino @@ -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 diff --git a/platformio.ini b/platformio.ini index f9e36e7..c7b7941 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 \ No newline at end of file + DIO2 + +[env:unowifiR2] +platform = atmelmegaavr +board = uno_wifi_rev2 +framework = arduino +lib_deps = + ${env.lib_deps} \ No newline at end of file