I have a code that calls one timer and that timer writes for how long the alarm is set for on the eeprom. I eventually want to have the alarm clock write the time of the alarm in the eeprom but i figured i need to start small. My code gets the time from an rtc and I just want it to write the value of the timer in the eeprom then read the value back to me on the serial monitor. however i keep getting this error, i posted below and the code is attached. Does anyone have an idea what the error is? Is this the right way going abut writing and reading arrays, function to the eeprom? Thanks
#include "Wire.h"
#include "DS1307RTC.h"
#include "DHT.h"
#include "PID_v1.h"
#include "SPI.h"
#include "Time.h"
#include "TimeAlarms.h"
#include "WiFi.h"
#include "EEPROM.h"
#include "EEPROMAnything.h"
int address = 0;
struct config_t
{
long alarm;
int mode;
} configuration;
void setup() {
Serial.begin(9600);
setSyncProvider(RTC.get);
Alarm.timerRepeat(10, alarm);
EEPROM_readAnything(0, configuration);
}
void loop() {
Serial.print(address);
Serial.print("\t");
Serial.print(alarm);
Serial.println();
// advance to the next address of the EEPROM
address = address + 1;
// there are only 512 bytes of EEPROM, from 0 to 511, so if we're
// on address 512, wrap around to address 0
if (address == 512)
address = 0;
delay(500);
Alarm.delay(0); //Needed for the timer alarms
} //End of Loop
void alarm ()
{
EEPROM_writeAnything(0, configuration);
}
THE ERRORS
sketch_jan14b:64: error: prototype for 'void Print::print(long long unsigned int)' does not match any in class 'Print'
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:65: error: candidates are: size_t Print::print(const Printable&)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:64: error: size_t Print::print(double, int)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:63: error: size_t Print::print(long unsigned int, int)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:62: error: size_t Print::print(long int, int)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:61: error: size_t Print::print(unsigned int, int)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:60: error: size_t Print::print(int, int)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:59: error: size_t Print::print(unsigned char, int)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:58: error: size_t Print::print(char)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:57: error: size_t Print::print(const char*)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:56: error: size_t Print::print(const String&)
C:\Users\AlbertR\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:55: error: size_t Print::print(const __FlashStringHelper*)