Hi just to say you that I've tried to read from eeprom and pass the value without lcd and it's working ...
#include <Time.h>
#include <TimeAlarms.h>
TimeElements tm,tm1;
String readString;
#include <EEPROM.h>
void setup()
{
Serial.begin(9600);
setTime(1,3,00,23,1,13); // set time to Saturday 8:29:00am Jan 1 2011
tm.Year = (EEPROM.read(6)+2000-1970);
tm.Month = EEPROM.read(5);
tm.Day = EEPROM.read(4);
tm.Hour = EEPROM.read(2);
tm.Minute = EEPROM.read(3);
tm.Second = 00;
tm1.Year = (EEPROM.read(11)+2000-1970);
tm1.Month = EEPROM.read(10);
tm1.Day = EEPROM.read(9);
tm1.Hour = EEPROM.read(7);
tm1.Minute = EEPROM.read(8);
tm1.Second = 00;
Alarm.triggerOnce(makeTime(tm), OnceOnly);
Alarm.triggerOnce(makeTime(tm1), OnceOnly1);
// Alarm.timerOnce(makeTime(tm), OnceOnly) ;
// Serial.println("Make Time");
Serial.println(makeTime(tm));
// Alarm.timerRepeat(15, Repeats); // timer for every 15 seconds
// called once after 10 seconds
}
void loop(){
digitalClockDisplay();
Alarm.delay(1000); // wait one second between clock display
}
// functions to be called when an alarm triggers:
void OnceOnly(){
Serial.println("Inizio Timer");
}
void OnceOnly1(){
Serial.println("Fine Timer");
}
void digitalClockDisplay()
{
// digital clock display of the time
Serial.print(hour());
printDigits(minute());
printDigits(second());
Serial.println();
}
void printDigits(int digits)
{
Serial.print(":");
if(digits < 10)
Serial.print('0');
Serial.print(digits);
}
But with the menù doesn't work ...
Thanks for the support,
gnux