mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
Blink(1)
This sample demos the chrome.hid API by controlling a ThingM blink(1) mk2 RGB LED light via USB HID Feature Reports.
APIs
Running this app on Linux
On Linux a udev rule must be added to allow Chrome to open the blink(1) device. Copy the file udev/61-blink1.rules to /etc/udev/rules.d. It contains the following rule which allows anyone in the plugdev group read/write access the hidraw node for this device. See USB Caveats for more details.
# Make the blink(1) accessible to plugdev via hidraw.
SUBSYSTEM=="hidraw", SUBSYSTEMS=="usb", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE="0660", GROUP="plugdev"

