grzezzz / BMWShifter

9 stars 1 forks source link

Hello i have problem, with compile [solved] #4

Open Dreed420 opened 1 month ago

Dreed420 commented 1 month ago
#define CAN_INT 9 // INT pin
MCP_CAN CAN(10); // CS pin
Joystick_ Joystick;

i get error


``\shifter\shifter.ino:32:1:` error: 'Joystick_' does not name a type; did you mean 'Joystick'?
 Joystick_ Joystick;
 ^~~~~~~~~
 Joystick
\shifter\shifter.ino: In function 'void pressButton(uint8_t)':
\shifter\shifter.ino:91:11: error: expected unqualified-id before '.' token
   Joystick.pressButton(button_id);
           ^
\shifter\shifter.ino:93:11: error: expected unqualified-id before '.' token
   Joystick.releaseButton(button_id);
           ^
\shifter\shifter.ino: In function 'void setup()':
\shifter\shifter.ino:136:11: error: expected unqualified-id before '.' token
   Joystick.begin();
           ^

exit status 1

Compilation error: 'Joystick_' does not name a type; did you mean 'Joystick'?``

U write "Joystick library by Giuseppe Martini (2.1.1)"

Dreed420 commented 1 month ago

need to use that https://github.com/MHeironimus/ArduinoJoystickLibrary