Hi there,
hoping to have chosen the right platform...
In previous codes I have succesfully used the Time library using Arduino0022.
I have now two versions of the same code, once as .pde for 0022 and once converted for arduino1.
I can upload the .pde code without problem using the arduino0022 version but when trying the same with arduino1
it tells me 'setTime' not declared in this scope. And below further details:
GH2012_0213.cpp:5:69: error: Time.h: No such file or directory
GH2012_0213.cpp: In function 'void setup()':
GH2012_0213.pde:-1: error: 'setTime' was not declared in this scope
GH2012_0213.cpp: In function 'void loop()':
GH2012_0213.pde:-1: error: 'hour' was not declared in this scope
GH2012_0213.cpp: In function 'void current_time()':
GH2012_0213.pde:-1: error: 'hour' was not declared in this scope
GH2012_0213.pde:-1: error: 'minute' was not declared in this scope
GH2012_0213.pde:-1: error: 'second' was not declared in this scope
However, I have downloaded the Time library to the arduino1 library folder as well and the three folders look the same as in the arduino0022.
I know, I could just use the old version but I 'd be curious to find out if anybody else experienced this problem or if anyone has an explanation (or even better: a solution ?!).
Thank you very much for your time, thoughts and suggestions.
cheers
An extract of the code is below:
#include <Time.h> // Library for timekeeping included
[...] A few variables defined in this section [...]
void setup()
{
setTime(7,50,52,22,2,12); // setTime(hr,min,sec,day,mnth,yr)
Serial.begin(9600);
[...]