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/PiLcd
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
..
locales PiLcd node: improved EN help and added DE help (#777) 2021-03-25 09:34:19 +00:00
LICENSE Bump piLcd package after tidy up 2020-06-15 23:20:46 +01:00
nrlcd add python 3 tests to most shell scripts 2021-05-09 17:42:26 +01:00
nrlcd.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
pilcd.html Bump piLcd package after tidy up 2020-06-15 23:20:46 +01:00
pilcd.js Add Japanese translations for pilcd node (#657) 2020-06-15 23:11:53 +01:00
README.md Bump piLcd package after tidy up 2020-06-15 23:20:46 +01:00

node-red-node-pilcd

A Node-RED node for a Raspberry Pi to write to a GPIO connected HD44780 style LCD panels.

Install

Either use the Node-RED Menu - Manage Palette option to install, or run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-pilcd

Usage

Raspberry Pi output to HD44780 style LCD module - typically 1, 2, or 4 lines.

It must be configured with a comma separated list of pins that are wired to the LCD panel. Pins MUST be a comma separated list of the 6 GPIO connector pin numbers that are connected to the RS, E, D4, D5, D6 and D7 pins of the LCD. e.g.

    26,24,22,18,16,12

Send the node a msg.payload with a string in it.

Strings for the 2nd line of the display must start 2: - the third start 3: - and the fourth 4: - For example

    2:I'm on line two
    4:and this is on line 4
    1:or indeed line 1

The 1: is not necessary for line one but is there if you build lines using a template,

To clear the display send the string clr:

It is up to you to manage string lengths to suit the display.

Requires the RPi.GPIO python library version 0.5.8 (or better) in order to work.

Note: we are using the actual physical pin numbers on connector P1 as they are easier to locate.