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.

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:

Matt B

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


Chewie B ;D