Calling analogRead from cpp class

I have tried the forum search but I couldn't extract any useful information.

I have extracted my analogRead into a class as the main program wasnts button presses not analogue voltages. The .pde and .cpp links OK until I add the analogRead command.

Error:
In member function 'int AnalogButton::GetButtons()':
error: 'analogRead' was not declared in this scope

What do I have to #include into the .cpp file ?

I have not posted source as there is a lot ::slight_smile:

TIA
Matt B

http://www.arduino.cc/playground/Code/Library#WProgram
:slight_smile:

Hot Dog !
Thanks for the fast reply. All code working now.

Cheers

Chewie B ;D