Compilation failed:...
 
Notifications
Clear all

Compilation failed: arduino pro micro.

4 Posts
2 Users
0 Reactions
1,898 Views
(@alexxx223)
New Member
Joined: 3 years ago
Posts: 3
Topic starter  
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.
This topic was modified 3 years ago by Alexxx223

   
Quote
(@hackoholic)
New Member
Joined: 3 years ago
Posts: 1
 

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.


   
ReplyQuote
(@alexxx223)
New Member
Joined: 3 years ago
Posts: 3
Topic starter  
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.

   
ReplyQuote
(@alexxx223)
New Member
Joined: 3 years ago
Posts: 3
Topic starter  

SIMHUB 7.4.2 solved the problem! Thank!


   
ReplyQuote
Share: