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.06k stars 403 forks source link

Will this work on a ESP8266 Nodemcu Board? #222

Closed simtcrom closed 1 year ago

simtcrom commented 2 years ago

Please indicate which board you would like to see supported. ESP8266 Nodemcu

I tried loading the library and trying to flash JoystickTest get below error,

In file included from C:\Users\sim_t\Documents\Arduino\libraries\ArduinoJoystickLibrary-version-2.0\src/Joystick.h:24:0, from C:\Users\sim_t\Documents\Arduino\libraries\ArduinoJoystickLibrary-version-2.0\examples\JoystickTest\JoystickTest.ino:13: C:\Users\sim_t\Documents\Arduino\libraries\ArduinoJoystickLibrary-version-2.0\src/DynamicHID/DynamicHID.h:37:28: fatal error: PluggableUSB.h: No such file or directory

include "PluggableUSB.h"

                        ^

compilation terminated. exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).

positron96 commented 2 years ago

ESP8266 has no hardware USB, so it's not possible to port the library.

MHeironimus commented 1 year ago

See the following wiki page for the list of supported boards: https://github.com/MHeironimus/ArduinoJoystickLibrary/wiki/Supported-Boards