1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/hardware/LEDborg
Sam Machin 2d28a2304f
Update package.jsons for mono-repo (#851)
Update the package.json for each node to point to the directory within the repo that hosts the code for the package in question.  as per https://docs.npmjs.com/cli/v7/configuring-npm/package-json#repository
2021-11-02 15:22:30 +00:00
..
78-ledborg.html Fix typo in ledborg node (#363) 2017-10-10 23:07:24 +01:00
78-ledborg.js remove node.done calls to tidy up 2019-06-27 22:26:50 +01:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
nrgpio add python 3 tests to most shell scripts 2021-05-09 17:42:26 +01:00
nrgpio.py Define raw_input() in Python 3 (#473) 2018-08-12 18:58:11 +01:00
package.json Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
README.md Info/Doc style updates to core/pi nodes 2016-03-02 13:27:52 +00:00

node-red-node-ledborg

A Node-RED node to control a PiBorg LedBorg board for a Raspberry Pi.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm i node-red-node-ledborg

Usage

A PiBorg LedBorg LED output node that expects a msg.payload with a three digit rgb triple, from 000 to 222. I.E. there are only 27 possible colours.

See the PiBorg site for more information.

You can also now use a msg.payload in the standard hex format "#rrggbb". The clip levels are :

0x00 - 0x57 = off
0x58 - 0xA7 = 50%
0xA8 - 0xFF = fully on

You can also use the @cheerlight colour names - red, amber, green, blue, cyan, magenta, yellow, orange, pink, purple, white, warmwhite, black

Notes

This node can only be used once per flow... as it uses physical pins 11, 13 and 15 on the Pi. Using it more than once will cause weird flashing and unpredictable behavior.

You can of course wire up multiple things in your flow to the same LEDborg node.