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

Control LED via report from windows #249

Open SteveC00k opened 1 year ago

SteveC00k commented 1 year ago

There is currently no receive code for controlling LED's Like mice such as the gamming ones have. I am not sure if its even possible to do this. I would like to be able to send to the HID a command to turn on or off an led based on events.

I am using this for a custom controller using the web game api. I can pull the connected joystick HID info via JavaScript navigator.hid.getDevices(0);
Once I have that info then I can send a HID report back to the Arduino telling it to turn on/off leds I have connected for visual display. Example of what I mean but a different HID device. I have a razor mouse and you can control the LED's in it. You can change color or turn them off. This is what I need to do but with the Arduino. Thanks for your time.

truher commented 1 year ago

i'm also interested in this enhancement FWIW.