probleme de class

bonjour,
je débute et la création de ma première librairie coince...
Je n'arrive pas à comprendre ce que le compilateur me dit :
"Joystick:10:14: error: expected constructor, destructor, or type conversion before '(' token
joystick::joy(xPin,yPin,buttonPin) ;"

Cela est sans doute évident ... qui peut m'aider ?

merci

Ludion

Joystick.h (206 Bytes)

Joystick.cpp (1.23 KB)

Joystick.ino (242 Bytes)

Bonjour,

L'instanciation de la class c'est
joystick joy(xPin,yPin,buttonPin) ;

et non
joystick::joy(xPin,yPin,buttonPin) ;

merci beaucoup. j'ai chercher partout une erreur simple, c'était sur...