I was trying to make this irrigation controller. " http://www.apcc.tk/diy-projects/rainmaker"
Its the original code (Attached file) and i didnt changed anything in the code.
But when i try to compile the code, it gives me error like this....
sketch_sep27a.ino: In function 'void handleButtons(int, boolean)':
sketch_sep27a:259: error: 'RTC' was not declared in this scope
sketch_sep27a:259: error: 'DS1307_HR' was not declared in this scope
sketch_sep27a:260: error: 'DS1307_MIN' was not declared in this scope
sketch_sep27a:261: error: 'DS1307_SEC' was not declared in this scope
sketch_sep27a:262: error: 'DS1307_DOW' was not declared in this scope
sketch_sep27a:292: error: 'RTC' was not declared in this scope
sketch_sep27a:292: error: 'DS1307_HR' was not declared in this scope
sketch_sep27a:293: error: 'DS1307_MIN' was not declared in this scope
sketch_sep27a:294: error: 'DS1307_SEC' was not declared in this scope
sketch_sep27a:295: error: 'DS1307_DOW' was not declared in this scope
sketch_sep27a:379: error: 'RTC' was not declared in this scope
sketch_sep27a.ino: In function 'void loop()':
sketch_sep27a:457: error: 'RTC' was not declared in this scope
sketch_sep27a:457: error: 'DS1307_HR' was not declared in this scope
sketch_sep27a:458: error: 'DS1307_MIN' was not declared in this scope
sketch_sep27a:459: error: 'DS1307_SEC' was not declared in this scope
sketch_sep27a:460: error: 'DS1307_DOW' was not declared in this scope
it seems that you do not have the library installed for using an DS1307 RealTime Clock
The link you provide does not give a link to the lib but there are several around.
Might take some code tweaking to match the library to the actual code.
The extension .pde indicates that the code is written in a pre Arduino 1.0 IDE , as from then on the .ino extension is used.
So you might get some small incompatibilities too.
And yes i have the DS1307 library installed in my library path.
Actually i saw few of the ds1307 library around web, tried them individually by deleting old one and install them one by one, at a time. but unfortunately none of them worked.
I got error every time i tried to compile the code. =(
Where exactly did you put the libraries, and did you preserve the correct subtree
for it? Each library goes in an appropriately named subdirectory of libraries
directory.
MarkT:
Where exactly did you put the libraries, and did you preserve the correct subtree
for it? Each library goes in an appropriately named subdirectory of libraries
directory.
xtalmagic:
I found many version of the ds1307 library file on web. tried few of them but none of them worked.
We can't reproduce your problem if we have to guess which one you used, or where you found the other libraries like the LCD8Bit_mod one (or AnalogButtons).
Hi all.
Again i have to comment on this post.
As i told that the code compile successfully, but it actually not.
Well, it did, but unfortunately the lcd goes crazy and no button works.
But when i tried to compile the code again it gives me error like this.....
In file included from V3_23_03.pde:6:
C:\Users\Documents\Arduino\libraries\AnalogButtons/AnalogButtons.h:52: error: 'boolean' does not name a type
C:\Users\Documents\Arduino\libraries\AnalogButtons/AnalogButtons.h:85: error: 'boolean' has not been declared
C:\Users\Documents\Arduino\libraries\AnalogButtons/AnalogButtons.h:88: error: 'boolean' has not been declared
V3_23_03:112: error: invalid conversion from 'void (*)(int, boolean)' to 'void (*)(int, int)'
V3_23_03:112: error: initializing argument 3 of 'AnalogButtons::AnalogButtons(int, int, void (*)(int, int))'
Now i think i should change the code for work with new ide.
And thats the point i need help.
i dont want to use lcd4bit.
just want to use lcdkeypad shields withliquidcrystal library on pinD4-D9 instead.
as well the button provided with the shield.