MHeironimus / ArduinoJoystickLibrary

An Arduino library that adds one or more joysticks to the list of HID devices an Arduino Leonardo or Arduino Micro can support.
GNU Lesser General Public License v3.0
2.1k stars 409 forks source link

The Joystick library can only be used with a USB MCU #144

Closed MitchK closed 4 years ago

MitchK commented 4 years ago

Description of Issue

Hi, I'm very new to Arduino development. When uploading the JoystickTest exampleto my board, I get this error:

The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).

It seems like the library does only support Arduino Leonardo or Micro. Is there a way/workaround to get it to run on a Mega 2560 or is there no way around buying a new board?

Thank you!

Technical Details

Sketch File that Reproduces Issue

JoystickTest sketch

Wiring Details

N/A

MHeironimus commented 4 years ago

That is correct. This library is only supported on the cards listed in the wiki: https://github.com/MHeironimus/ArduinoJoystickLibrary/wiki/Supported-Boards

MitchK commented 4 years ago

Thanks! Just got my Leonardo today, closing this.