1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-02-19 15:36:03 +01:00

added external EEPROM support

This commit is contained in:
travis-farmer 2023-10-31 09:47:29 -04:00
parent 2f72a3dd57
commit 13bb1175f3
No known key found for this signature in database
GPG Key ID: 0BC296791D14CB35
3 changed files with 4 additions and 4 deletions

View File

@ -31,12 +31,12 @@
#include "Sensors.h"
#include "Turnouts.h"
#if defined(ARDUINO_ARCH_SAMC)
#if defined(ARDUINO_ARCH_SAMC) || defined(ARDUINO_GIGA)
ExternalEEPROM EEPROM;
#endif
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
// A pins grounded (0b1010000 = 0x50)
#endif

View File

@ -26,7 +26,7 @@
#include <Arduino.h>
#if defined(ARDUINO_ARCH_SAMC)
#if defined(ARDUINO_ARCH_SAMC) || defined(ARDUINO_GIGA)
#include <SparkFun_External_EEPROM.h>
extern ExternalEEPROM EEPROM;
#else

View File

@ -150,7 +150,7 @@
// #endif
#elif defined(ARDUINO_GIGA)
#define ARDUINO_TYPE "Giga"
#ifndef DISABLE_EEPROM
#ifndef GIGA_EXT_EEPROM
#define DISABLE_EEPROM
#endif
//#if !defined(I2C_USE_WIRE)