1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

Maeging with master

This commit is contained in:
David Cutting 2020-08-22 14:04:09 -06:00
commit b74fba5809
2 changed files with 12 additions and 5 deletions

View File

@ -18,7 +18,7 @@
*/
#include <Arduino.h>
#include <CommandStation.h>
#include <DCC-EX-Lib.h>
#include <ArduinoTimers.h>
#include "Config.h"
@ -134,7 +134,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,12 +9,12 @@
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = samd21, mega2560, mega328
default_envs = samd21, mega2560, mega328, unowifiR2
src_dir = .
[env]
lib_deps =
https://github.com/DCC-EX/CommandStation.git#issue18-LocoMgmt
https://github.com/DCC-EX/DCC-EX-Lib.git#master
https://github.com/davidcutting42/ArduinoTimers.git#master
[env:samd21]
@ -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}