i don't understand why a statement like:
in a .h file
creates an error messige like --
/home/cxevalo/sketchbook/libraries/ProcessTimer/ProcessTimer.h:14: error: 'boolean' does not name a type
when in my library:
it worked just fine.
I wrote a lot of C code but not for the last 10 15 years so i am big time rusty, probably a simple thing that i am over looking.
I put #include <WProgram.h> the first thimg in the .h file and then first thing in the .pde file nothing changed. still have
"/home/cxevalo/sketchbook/libraries/ProcessTimer/ProcessTimer.h:12: error: 'boolean' does not name a type".
I have seen WProgram.h in other sketches but i haven't seen any documentation on what it is/does.
Please post the Sketch and library source code.
Please use code-tags (click the # button above the edit window).
the byte and boolean problem was caused by a/several syntax errors that showed up after i changed the boolean's and byte's to int's to get in with things.
I have another question. Is it possible to change the console colors?
that red on black in small type is really hard on my old eyes. I can't find anything in preferences.txt that looks promising.
edit: i don't think Arduino looks at that file. changing font size or window width sure dosen't do anything.
another day and another head scratcher.
now i have this sketch
ISR(TIMER1_OVF_vect) // <------point of error
producing this error with the line indicated highlighted yellow.
In function 'void setup()':
error: expected unqualified-id before string constant At global scope:
for what its worth in looking for what #include <WProgram.h> does for you, I made these notes for my self.
Your ISR function is embedded in the setup function. That is not allowed.
The PT and timerArray variables are local variables. They will go out of scope (i.e. cease to exist) at the end of setup. This is probably not what you want.
Thanks PaulS that was exactly the problem.
any thoughts on getting the red out?
Or quit making mistakes.
Thats what I would chose if it was available.
I was more referring to changing the red on black display to something more humane.