Pages: 1 [2]   Go Down
Author Topic: Using TimeAlarm library to trigger blink at a certain time  (Read 2312 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Haha, my bad, i'll blame the small font i use... Thanks, appreciated.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ Jack Christensen
Sorry to bother, i feel kinda foolish asking this but i am lost at the moment. I too am trying to use the TimeAlarm library and i have replaced the .cpp file with your .cpp file (as mention in your post). However i am still getting an error. It says that the variables are not declared? The i am on Windows 7, Arduino 1.0.5.
The error message i am getting is:
Code:
TimeAlarmExample.pde: In function 'void setup()':
TimeAlarmExample:20: error: 'setTime' was not declared in this scope
TimeAlarmExample:22: error: 'Alarm' was not declared in this scope
TimeAlarmExample:24: error: 'dowSaturday' was not declared in this scope
TimeAlarmExample.pde: In function 'void loop()':
TimeAlarmExample:33: error: 'Alarm' was not declared in this scope
TimeAlarmExample.pde: In function 'void digitalClockDisplay()':
TimeAlarmExample:64: error: 'hour' was not declared in this scope
TimeAlarmExample:65: error: 'minute' was not declared in this scope
TimeAlarmExample:66: error: 'second' was not declared in this scope
Hope i provided enough information.
Thanks so much for your time
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 71
Posts: 3502
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like the library is installed in the wrong place. There is a known issue if the IDE's automatic installation process (Sketch > Import Library > Add Library) is used to install the Time library. The automatic process will install the three libraries that are in the Time.zip file as:

Code:
arduino\sketchbook\libraries\Time\DS1307RTC
arduino\sketchbook\libraries\Time\Time
arduino\sketchbook\libraries\Time\TimeAlarms

But they should be:

Code:
arduino\sketchbook\libraries\DS1307RTC
arduino\sketchbook\libraries\Time
arduino\sketchbook\libraries\TimeAlarms

Verify that they're in the right place, move them around if not.
« Last Edit: December 09, 2013, 05:16:59 pm by Jack Christensen » Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks
wil try that as soon as i can and let you know, how it goes.
Thanks for your quick response
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Jack!!!!!!
 you were spot on thanks so much!!! Finally i can sleep at ease.
The TimeAlarm and Time libraries were in in subfolders also called TimeAlarm and Time respectively.
Just copied sub folder and merged with parent folder
Once again thanks so much
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 71
Posts: 3502
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@cver019, good deal! Hate to see sleep lost over this stuff ... but I know, it can definitely do it to a person! smiley-sleep
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Pages: 1 [2]   Go Up
Jump to: