Should have been straightforward, open verify upload boom done. But of course nothing is that simple for me. I did as instructed by the person who created the sketch but when I tried to upload it I got the error message
C:\Users\User\Desktop\Analog-E-Brake-master\ANALOG_EBRAKE\ANALOG_EBRAKE.ino: In function 'void setup()':
ANALOG_EBRAKE:13:4: error: 'Joystick' was not declared in this scope
Joystick.begin();}
^
C:\Users\User\Desktop\Analog-E-Brake-master\ANALOG_EBRAKE\ANALOG_EBRAKE.ino: In function 'void loop()':
ANALOG_EBRAKE:21:2: error: 'Joystick' was not declared in this scope
{Joystick.setThrottle(mapped);}}
^
exit status 1
'Joystick' was not declared in this scope
GypsumFantastic:
That looks like this project. It comes with its own Joystick library and compiles just find for me (as long as I select the right board in Tools).
Are you using this particular Joystick library?
Yes and yes
Like I said earlier have used a few of his sketches before and had no issue but this one giving me some grief.
The right board has been selected in tools.
Does it make a difference of it plugged into a USB board rather than directly into the PC??