I have been busting my guts on my alarm clock project and a couple of other ones just recently, but it has become painfully obvious that I need to write SMALL routines on a "prototype" system just to check what is going on.
"Luckily" I have a spare Arduino and a 16x2 display with analogue buttons.
Alas, the other shield is 20x4 and has DIGITAL buttons.
That in itself isn't a concern, but I can't get the Arduino and display working together happily to test things.
This is the code.
This is the error:
In file included from AnalogButtons.cpp:35:
AnalogButtons.h:51: error: 'boolean' does not name a type
AnalogButtons.h:84: error: 'boolean' has not been declared
AnalogButtons.h:87: error: 'boolean' has not been declared
AnalogButtons:50: error: invalid conversion from 'void ()(int, boolean)' to 'void ()(int, int)'
AnalogButtons:50: error: initializing argument 3 of 'AnalogButtons::AnalogButtons(int, int, void (*)(int, int))'
Yup, clear as mud to me.
The .h file is in the same directory by the way.
And the errors are from the .h file so I don't know what is going on.
I'd recommend that you uninstall 1.0.1, and install 1.0 in it's place. 1.0.1 decided that missing include files are no longer fatal errors. What a load of horseshit. Of course a missing include file is a fatal error.
Granted, but if I remove that INCLUDE I still get the same errors.
Well, of course you do. You can't just remove it. You need to replace it with the name of the file that replaced WProgram.h. Because the release notes for 1.0 explained the whole issue, it appears that you didn't read them. So, I'm not going to tell you what to replace the WProgram.h file with. Go read the release notes.
Granted, but if I remove that INCLUDE I still get the same errors.
Well, of course you do. You can't just remove it. You need to replace it with the name of the file that replaced WProgram.h. Because the release notes for 1.0 explained the whole issue, it appears that you didn't read them. So, I'm not going to tell you what to replace the WProgram.h file with. Go read the release notes.
It's also happens to be one of the first issues listed in the Read this before posting a programming question thread...