Hello,
I am using a DS1302 (Real Time Clock on 3 pins). The library work great on Mega 2560 but on Due, I have the error message:
NHC_5_Due:119: error: expected ')' before '' token
NHC_5_Due:119: error: expected ')' before '' token
The line 119 is:
DS1302 RTC(CE, IO, SCLK);Â Â Â Â Â Â //DS1302
And the line 118 is:
UTouch myTouch(6,5,4,3,2);Â Â Â Â Â //Tactile
If I comment the line 119, there is no problem to compile the code. Is a problem from the lib?
Do you have a link to download a correct lib DS1302 for DUE?
The libray work great with Mega 2560, but to compile it for Due (Programming Port), there is that error.
//*** DS1302 ***
const byte CE = 54;Â Â Â Â Â Â Â //[X] DS1302Â
const byte IO = 55;Â Â Â Â Â Â Â //[X] DS1302
const byte SCLK = 56;Â Â Â Â Â Â //[X] DS1302
DS1302 RTC(CE, IO, SCLK);Â Â Â Â Â Â //DS1302
Very Usefull this Lib , I only find this one for the 1302 , why does nobody intresting on this chip ? ( or I don't read the right side of the Forum ).
It Works on a freeduino , but sorry I don't own a Arduino Due , so I cannot answer at this time , I will come back here when My arduino 2650 will be at home , I ordered one last week
so.... there's no way to make the DUE works with the DS1302?
i have the same problem, using the library and others codes i have found on the NET, i can't make it works on due, no compilation error, but no response of the DS1302. (on duemilanove works great). isn't a problem of voltage, i probe that on duemilanove (working on 3.3 V) and works fine.
DS1302 it's a great RTC because don't need any bus of the micro, just 3 D I/O.