Arduino-PS2X
Arduino-PS2X copied to clipboard
error message: "error does not name a type" while I have downloaded this library and included to the arduino library of version 1.8.9. It keeps on getting error message that error does not name a type. I am using arduino Due board for controlling a robot. I am stucked afterr installing this library to my IDE and couldn't able to get it out.
while I have downloaded this library and included to the arduino library of version 1.8.9. It keeps on getting error message that error does not name a type. I am using arduino Due board for controlling a robot. I am stucked afterr installing this library to my IDE and couldn't able to get it out.

Hi, I believe that you need to have this line
int error = 0;
before the setup which declares 'error' as an integer. This is in the example code.