mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-25 05:31:24 +01:00
Added support for Uno Wifi R2 and Nano Every
This commit is contained in:
parent
8f4e4f332a
commit
867c949674
@ -92,7 +92,7 @@ void setup() {
|
|||||||
CommManager::registerInterface(new SerialInterface(Serial));
|
CommManager::registerInterface(new SerialInterface(Serial));
|
||||||
Wire.begin(); // Needed for EEPROM to work
|
Wire.begin(); // Needed for EEPROM to work
|
||||||
EEStore::init(&Serial);
|
EEStore::init(&Serial);
|
||||||
#elif defined(ARDUINO_ARCH_AVR)
|
#elif defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_MEGAAVR)
|
||||||
CommManager::registerInterface(new SerialInterface(Serial));
|
CommManager::registerInterface(new SerialInterface(Serial));
|
||||||
EEStore::init(&Serial);
|
EEStore::init(&Serial);
|
||||||
#endif
|
#endif
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = samd21, mega2560, mega328
|
default_envs = samd21, mega2560, mega328, unowifiR2
|
||||||
src_dir = .
|
src_dir = .
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
@ -41,3 +41,10 @@ framework = arduino
|
|||||||
lib_deps =
|
lib_deps =
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
DIO2
|
DIO2
|
||||||
|
|
||||||
|
[env:unowifiR2]
|
||||||
|
platform = atmelmegaavr
|
||||||
|
board = uno_wifi_rev2
|
||||||
|
framework = arduino
|
||||||
|
lib_deps =
|
||||||
|
${env.lib_deps}
|
Loading…
Reference in New Issue
Block a user