Big Red Button
A node-hid based driver to read actions from the Dream Cheeky Big Red Button.

Credit
This was initially a fork of BigRedButtonNodeHID by Dj Walker-Morgan.
Install
npm install big-red-button
Usage
var BigRedButton = ; var bigRedButtons = ; for var i = 0; i < BigRedButton; i++ console; bigRedButtons; bigRedButtonsi; bigRedButtonsi; bigRedButtonsi; bigRedButtonsi; bigRedButtonsi;
Events
-
lidRaised
-
lidClosed
-
buttonPressed
-
buttonReleased
-
error
State methods
-
button.isLidUp()
-
button.isLidDown()
-
button.isButtonPressed()
FAQ
-
Q. It's not working on linux!
-
A. On linux, you may need to run as root for it to work. You can try setting a rule for non-root users to access the device.
Create the rule file:
sudo vim /etc/udev/rules.d/100-bigred.rulesand add the following:
SUBSYSTEM=="input", GROUP="input", MODE="0666"SUBSYSTEM=="usb", ATTRS{idVendor}=="7476", ATTRS{idProduct}=="13", MODE:="666", GROUP="plugdev"Afterwards, you can reload the service:
sudo udevadm control --reload-rulesMore info on the node-hid repo.
-
-
Q. What's the vendor ID and product ID?
- A. The vendor ID is
7476
. The product ID is13
.
- A. The vendor ID is
License
MIT