mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
update hardware nodes info style
This commit is contained in:
@@ -16,10 +16,9 @@ Pimoroni Getting Started with Unicorn HAT</a> page.
|
||||
Install
|
||||
-------
|
||||
|
||||
Run the following command in the root directory of your Node-RED install.
|
||||
Usually this is `~/.node-red`
|
||||
Run the following command in your Node-RED user directory - typically `~/.node-red`
|
||||
|
||||
npm install node-red-node-pi-unicorn-hat
|
||||
npm i node-red-node-pi-unicorn-hat
|
||||
|
||||
Usage
|
||||
-----
|
||||
@@ -30,23 +29,23 @@ png image, or by specifying a single colour using an r,g,b triple.
|
||||
The brightness can also be set in the configuration. Defaults to 20% so as not
|
||||
to blind you.
|
||||
|
||||
A pixel is set by **msg.payload** with a CSV string `x,y,r,g,b` , where x and y
|
||||
A pixel is set by `msg.payload` with a CSV string `x,y,r,g,b` , where x and y
|
||||
are 0 to 7, and r, g and b are 0 - 255.
|
||||
If `x` or `y` are set to `*` then the complete row or column can be set.
|
||||
Setting both `x` and `y` to `*` fills the background.
|
||||
Multiple pixels can be specified at once by using `x1,y1,r1,g1,b1,x2,y2,r2,g2,b2,...` etc
|
||||
|
||||
The background can also be set to a colour by setting **msg.payload** to an r,g,b triple.
|
||||
The background can also be set to a colour by setting `msg.payload` to an r,g,b triple.
|
||||
|
||||
Any msg with a **msg.topic** identifies a 'sprite', which can then be moved
|
||||
Any msg with a `msg.topic` identifies a 'sprite', which can then be moved
|
||||
independently of the background. A 'sprite' can be a single pixel, or a group of pixels.
|
||||
|
||||
Setting **msg.payload** to `0` will delete the sprite from the list identified by **msg.topic**.
|
||||
Setting `msg.payload` to `0` will delete the sprite from the list identified by `msg.topic`.
|
||||
|
||||
Setting **msg.payload** to `DEL` delete any sprites - leaving the background.
|
||||
Setting `msg.payload` to `DEL` delete any sprites - leaving the background.
|
||||
|
||||
Setting **msg.payload** to `CLS` will clear the display to off and delete any sprites.
|
||||
Setting `msg.payload` to `CLS` will clear the display to off and delete any sprites.
|
||||
|
||||
The overall brightness may be set by setting **msg.payload** to `brightness,nn`, where `nn` is 0 to 100.
|
||||
The overall brightness may be set by setting `msg.payload` to `brightness,nn`, where `nn` is 0 to 100.
|
||||
|
||||
The rotation may be set by setting ••msg.payload•• to 'rotate,rr', where 'rr' is 0, 90, 180 or 270.
|
||||
The rotation may be set by setting `msg.payload` to 'rotate,rr', where 'rr' is 0, 90, 180 or 270.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-pi-unicorn-hat",
|
||||
"version" : "0.0.5",
|
||||
"version" : "0.0.6",
|
||||
"description" : "A Node-RED node to output to a Raspberry Pi Unicorn HAT from Pimorini.",
|
||||
"dependencies" : {
|
||||
"pngjs": "2.2.*"
|
||||
|
Reference in New Issue
Block a user