0.1.0 • Published 9 months ago

node-red-node-pibrella v0.1.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
9 months ago

node-red-node-pibrella

A Node-RED node to control a Pibrella add-on board for a Raspberry-Pi.

Install

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

npm install node-red-node-pibrella

Pre-reqs

Requires the RPi.PIO python library version 0.5.8 (or better) in order to work. See the RPi.GPIO site for mode details.

sudo apt-get -y install python-rpi.gpio

Usage

A pair of input and output Node-RED nodes for the Raspberry Pi Pibrella from Pimoroni.

Output

The output node will set the selected output high (on) or low (off) depending on the value passed in. Expects a msg.payload with either a 0 or 1 (or true or false).

You may also select PWM mode to dim the on board LEDs if you wish. Expects a value from 0 to 100.

The Buzzer expects a number representing the frequency in Hz. 0 is off and 1 is a tone - so you can use 0/1 type inputs as well.

Input

The input node generates a msg.payload with either a 0 or 1 depending on the state of the input pin.

The msg.topic is set to pibrella/{the pin id} - which will be A, B, C, D or R.

0.1.0

9 months ago

0.0.17

2 years ago

0.0.16

3 years ago

0.0.15

4 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

9 years ago

0.0.6

9 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago