@edgepi-cloud/node-red-edgepi-led
Version:
Node for EdgePi Led Array
46 lines (32 loc) • 793 B
Markdown
# node-red-edgepi-led
## EdgePi LED node that changes the state of LEDs on the EdgePi.
## Install
Install normally through the node-red editor or install with npm in your node-red directory
(typically located at `~/node.red`) by running the following command:
```
npm install @edgepi-cloud/node-red-edgepi-led
```
## Properties
**RPC Server** <br>
The connection to your EdgePi's RPC Server.
## Inputs
- **payload** (_boolean_)<br>
The LED state.
- **pin** (_number_) <br>
The LED pin on which to change state.
Example input configuration:
```
msg {
"payload": true,
"pin": 1
}
```
## Outputs
- **payload** (_string_)<br>
A success message stating the configuration of the given LED.
Example output:
```
msg {
"payload": "Successfully turned on LEDPins.LED1."
}
```