boolean--byte types ??

i don't understand why a statement like:
boolean done();
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.

#include <WProgram.h>

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

#include "ProcessTimer.h"

void setup()
Ptimer timerArray[4];

ProcessTimer PT(timerArray);

ISR(TIMER1_OVF_vect)  // <------point of error

void loop()


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.

#ifndef WProgram_h
#define WProgram_h

#include <stdlib.h>
#include <string.h>
#include <math.h>

#include <avr/interrupt.h>

#include "wiring.h"

#ifdef __cplusplus
#include "HardwareSerial.h"


#ifndef Wiring_h
#define Wiring_h

#include <avr/io.h>
#include "binary.h"


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?

any thoughts on getting the red out?

Visine? :smiley:

Or quit making mistakes. :wink:

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.