I have problem trying to get time using Nuelectronics “Real-time Data-log & IO shield” (it has the DS1302 chip). I have Mega 256 board with this shield plugged into it.
I’ve gotten other devices to work fine (like Parallax Ping Ultrasonic Distance Sensor, 3 axis accel, etc).
I have tried several different programs and now have gone back to what appears to be, a simple program, “set_clock, copyright Matt Sparks, 2009”.
I have tried adding different support files in the library, like Mr Karlsen’s, and tried his program. But, like I said, trying to simplify situation with original stuff (programs and libs).
My guess is very basic stupid mistake, but driving me nutso.
Thanks for any suggestions!
------ Start code sample ------
/* Set the appropriate digital I/O pin connections */
uint8_t CE_PIN = 4; //4 was 5
uint8_t IO_PIN = 1; //1 was 6
uint8_t SCLK_PIN = 3; //3 was 7
/* Create buffers */
/* Create a DS1302 object */
DS1302 rtc(CE_PIN, IO_PIN, SCLK_PIN);
------ end code sample that generates first errors -----
----- First few errors- (sorry don’t know how to copy & paste error msgs)
set_clock:23: error: no matching function for call to
‘DS1302::DS1302(uint8_t&, uint8_t&, uint8_t&)’
---- end sample first error codes —