Hello everybody.
A strange error started appearing after updating to version 7.4.0
Up to this point, I could load sketches into arduino micro like a joystick. Now if I turn on the joystick in the settings, it gives an error. "
Using library Adafruit_GFX at version 1.1.5 in folder: C:\Program+Files+(x86)\SimHub\_Addons\Arduino\ArduinoIDE\arduino-1.6.13\libraries\Adafruit_GFX
C:\Program Files (x86)\SimHub\_Addons\Arduino\DisplayClientV2\DisplayClientV2.ino: In function 'void UpdateGamepadEncodersState(bool)':
C:\Program Files (x86)\SimHub\_Addons\Arduino\DisplayClientV2\DisplayClientV2.ino:1269:3: error: 'Joystick' was not declared in this scope
Joystick.setButton(btnidx, dir == 0);
^
C:\Program Files (x86)\SimHub\_Addons\Arduino\DisplayClientV2\DisplayClientV2.ino:1277:3: error: 'Joystick' was not declared in this scope
Joystick.sendState();
^
exit status 1
Sorry for my English.
Please advise how to solve the problem. Thank you.
I am now having the exact same problem. I had a similar problem not too long ago with my own personal Pro Micro projects where I had both the official Arduino Joystick library and also the MHeironimus joystick library and think the compiler got confused. I wonder if this is a similar problem.
Yes, it is possible. But I didn't install any additional libraries. I use only what SIMHAB installs itself. There are two Arduino micro in my project. I managed to make one with a joystick, but the second is gone. I tried changing arduino and wires - it doesn't help.
SIMHUB 7.4.2 solved the problem! Thank!