mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update blink1 node to allow multiple blink1s
This commit is contained in:
@@ -10,9 +10,14 @@ As the blink1 is a USB HID device you may need some extra hardware libraries as
|
||||
documented <a href="https://www.npmjs.com/package/node-blink1" target="_new">here</a>
|
||||
and <a href="https://github.com/todbot/blink1/blob/master/linux/51-blink1.rules" target="_new">here</a>.
|
||||
|
||||
Specifically Ubuntu/Debian/Raspbian user may need to
|
||||
Specifically Ubuntu/Debian/Raspbian users may need to
|
||||
|
||||
sudo apt-get install libusb-1.0-0.dev.
|
||||
sudo apt-get install libusb-1.0-0-dev
|
||||
|
||||
and also setup these udev rules in `/etc/udev/rules.d/51-blink1.rules`
|
||||
|
||||
SUBSYSTEM=="input", GROUP="input", MODE="0666"
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE:="666", GROUP="plugdev"
|
||||
|
||||
Install
|
||||
-------
|
||||
@@ -20,8 +25,7 @@ Install
|
||||
Run the following command in the user directory of your Node-RED install.
|
||||
This is usually `~/.node-red`
|
||||
|
||||
npm install node-red-node-blink1
|
||||
|
||||
npm i node-red-node-blink1
|
||||
|
||||
Usage
|
||||
-----
|
||||
@@ -32,4 +36,4 @@ Sends the <b>msg.payload</b> to a Thingm Blink(1) LED device. The payload can be
|
||||
- a hex colour #rrggbb - e.g. green is #00FF00
|
||||
- a <a href="http://www.cheerlights.com/control-cheerlights">@cheerlights</a> colour name - e.g. blue
|
||||
|
||||
The @cheerlights colours are - red, amber, green, blue, cyan, magenta, yellow, orange, pink, purple, white, warmwhite, black
|
||||
The colours it accepts are - red, amber, green, blue, cyan, magenta, yellow, orange, pink, purple, white, warmwhite (or oldlace), black, (or off)
|
||||
|
Reference in New Issue
Block a user