mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-09-22 22:38:16 +03:00
Updated HID lights (markdown)
+13
@@ -2,3 +2,16 @@ This information is for developers and controller makers.
|
||||
|
||||
Spice can translate cabinet light output to USB HID output.
|
||||
|
||||
## HID specification
|
||||
|
||||
The [HID usage spec](https://www.usb.org/sites/default/files/hut1_6.pdf) is maintained by the USB-IF.
|
||||
|
||||
For lights, the `LED Page (0x08)` is the most commonly used, but you are not limited to those.
|
||||
|
||||
## Sample code
|
||||
|
||||
Arduino code in [UltimatePopnController](https://github.com/CrazyRedMachine/UltimatePopnController/blob/master/popnController/POPNHID.cpp)
|
||||
|
||||
Arcin code in [arcin-infinitas](https://github.com/kinetic-flow/arcin-infinitas/blob/master/arcin/report_desc.h)
|
||||
|
||||
[Beef-board](https://github.com/HWXLR8/beef-board/blob/master/fw/Descriptors.h)
|
||||
Reference in New Issue
Block a user