mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-24 16:46:13 +01:00
Compare commits
2 Commits
9921588728
...
bde3d23d27
Author | SHA1 | Date | |
---|---|---|---|
|
bde3d23d27 | ||
|
13bb1175f3 |
|
@ -31,12 +31,12 @@
|
||||||
#include "Sensors.h"
|
#include "Sensors.h"
|
||||||
#include "Turnouts.h"
|
#include "Turnouts.h"
|
||||||
|
|
||||||
#if defined(ARDUINO_ARCH_SAMC)
|
#if defined(ARDUINO_ARCH_SAMC) || defined(ARDUINO_GIGA)
|
||||||
ExternalEEPROM EEPROM;
|
ExternalEEPROM EEPROM;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void EEStore::init() {
|
void EEStore::init() {
|
||||||
#if defined(ARDUINO_ARCH_SAMC)
|
#if defined(ARDUINO_ARCH_SAMC) || defined(ARDUINO_GIGA)
|
||||||
EEPROM.begin(0x50); // Address for Microchip 24-series EEPROM with all three
|
EEPROM.begin(0x50); // Address for Microchip 24-series EEPROM with all three
|
||||||
// A pins grounded (0b1010000 = 0x50)
|
// A pins grounded (0b1010000 = 0x50)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
#if defined(ARDUINO_ARCH_SAMC)
|
#if defined(ARDUINO_ARCH_SAMC) || defined(ARDUINO_GIGA)
|
||||||
#include <SparkFun_External_EEPROM.h>
|
#include <SparkFun_External_EEPROM.h>
|
||||||
extern ExternalEEPROM EEPROM;
|
extern ExternalEEPROM EEPROM;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -150,7 +150,7 @@
|
||||||
// #endif
|
// #endif
|
||||||
#elif defined(ARDUINO_GIGA)
|
#elif defined(ARDUINO_GIGA)
|
||||||
#define ARDUINO_TYPE "Giga"
|
#define ARDUINO_TYPE "Giga"
|
||||||
#ifndef DISABLE_EEPROM
|
#ifndef GIGA_EXT_EEPROM
|
||||||
#define DISABLE_EEPROM
|
#define DISABLE_EEPROM
|
||||||
#endif
|
#endif
|
||||||
//#if !defined(I2C_USE_WIRE)
|
//#if !defined(I2C_USE_WIRE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user