On my project to water potted plants, I have moved a step forward, alas two back.
Looking for which RTC to get, I went for the PCF 8583 one.
Found some libraries and included them.
These are the errors:
In file included from PCF8583.cpp:31:
PCF8583.h:70: error: 'byte' has not been declared
PCF8583.h:71: error: 'byte' does not name a type
PCF8583.cpp: In member function 'void PCF8583::get_time()':
PCF8583.cpp:54: error: 'byte' was not declared in this scope
PCF8583.cpp:54: error: expected `;' before 'incoming'
PCF8583.cpp:55: error: 'incoming' was not declared in this scope
PCF8583.cpp: In member function 'void PCF8583::set_time()':
PCF8583.cpp:81: error: 'int_to_bcd' was not declared in this scope
PCF8583.cpp:84: error: 'byte' was not declared in this scope
PCF8583.cpp: At global scope:
PCF8583.cpp:97: error: 'int PCF8583::bcd_to_byte' is not a static member of 'class PCF8583'
PCF8583.cpp:97: error: 'byte' was not declared in this scope
PCF8583.cpp:98: error: expected ',' or ';' before '{' token
PCF8583.cpp:102: error: 'byte' does not name a type
Attached is the sketch.
I had to change parts of the library as well as it had old terms in it like:
WIre.transmit and Wire.receive which had to be changed to the newer terms.
No big, but then some of the other errors are a bit beyond me just now.
I AM working on them as well, but would appreciate a bit of a shove in the right direction.
I am also needing help with the libraries so that a "Day of the week" value is accessible to me and that would have to be done at the .ccp or .h level.
I shall try to contact the person who wrote it and ask/annoy him, but to be fair, I was hoping someone here could/would help.
Thanks.
P.S.
I have found a later version of said libraries but I still get errors.
This is the error:
In file included from read_write_time_alarm.pde:3:
E:\Shepherd's documents\Arduino\libraries\PCF8583/PCF8583.h:81: error: 'byte' has not been declared
E:\Shepherd's documents\Arduino\libraries\PCF8583/PCF8583.h:82: error: 'byte' does not name a type
and the sketch is .....
(see attached)
V7a.zip (5.74 KB)
read_write_time_alarm.pde (2.27 KB)