Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Development / Re: Time Library added to Playground on: January 20, 2010, 07:22:05 pm
Quote
… timerRepeat is only in seconds and not formatted like alarmRepeat …
You should be able to set timers just like alarms, did you try something like :  Alarm.timerRepeat( 1,30,0, TimerTask);   // set timer to repeat every 1 hour and 30 minutes

I see..
  Alarm.timerRepeat(1, 0, Repeats);
does not work
but
  Alarm.timerRepeat( 0, 1, 0, Repeats);
does.

thank you smiley-grin
2  Forum 2005-2010 (read only) / Development / Re: Time Library added to Playground on: January 19, 2010, 12:43:50 am
Quote
I guess I had an older version of Time that didn't have TimeAlarms?
Quote
Yes, the  TimeAlarms library was only added recently. Perhaps you can report how you get on with the alarms library in the thread linked above.

It was a joy to use!!
your example was simple & thorough enough for me to understand how to use it.

The only confusion I had was timerRepeat is only in seconds and not
formatted like alarmRepeat but it did not take long to figure out time time * 60 to get minutes.

thank you for such a wonderful & versatile library!  smiley-wink
3  Forum 2005-2010 (read only) / Development / Re: Time Library added to Playground on: January 16, 2010, 12:07:02 am
Ahh, thank you!
I guess I had an older version of Time that didn't have TimeAlarms?
4  Forum 2005-2010 (read only) / Development / Re: Time Library added to Playground on: January 15, 2010, 08:09:14 am
Is there an example somewhere of this library running an alarmed event?

5  Forum 2005-2010 (read only) / Development / Re: New library for Scheduling Time Based Tasks on: January 25, 2010, 01:58:27 am
Oh yeah, I should have known that..

that fixed it!
thank you very much.
6  Forum 2005-2010 (read only) / Development / Re: New library for Scheduling Time Based Tasks on: January 24, 2010, 07:52:42 pm
It does not seem to be working for me.
this is the code bits....

  AlarmId loggit = Alarm.timerRepeat(TMR_LOGGER, logTime);             // log scheduler alarm


void fullLog() {                                     // Stop logging when full
  addr = 0;                                           // reset address pointer
  Alarm.disable(loggit);                          // shut off logTime alarm
}

I get;
in function 'void fullLog()'
error: 'loggit' was not declared in this scope

what am I doing wrong?
7  Forum 2005-2010 (read only) / Development / Re: New library for Scheduling Time Based Tasks on: January 20, 2010, 07:30:00 pm
once set, can you turn an alarm or timer off?
Pages: [1]