node-red-contrib-ats-led-2

0.4.9 • Public • Published

node-red-contrib-ats-led-2

A node specifically written for ats/ncd hat to control RGBY led

Inputs

1 = on 0 = off

Outputs

The complete msg.payload contains the availble output.. MLC 7/5/23;

Details

This is a node specifically written for ATS/NCD hats to control the onboard multi-color RGBY led. This Node will work for other GPIO devices wired to pin 12, pin 16 and pin 18. The Gateway selector is specfic to ATS: Our V10 gateway uses a single multi-color LED. The Mark 5 gateway uses two individual LED's.

    Ways to select LED colors
        Select color drop down = use color selector drop down.
        msg.color = text value of "red,blue.green,yellow or off".
        msg.ledpin = numeric value of gpio "value" "18,23,24" Note: code based on rpi gpio lib.
            example: GPIO18 = pi4 pin 12.
            Note: reqiures manual selection of msg.ledpin from color selector.
                    example: msg.ledpin = 24 (set led color to red)
                    example: msg.color = "red" (set led color to red)
    pin 12 = GPIO18 = Color BLUE - V10 only
    pin 16 = GPIO23 = Color GREEN
    pin 24 = GPIO24  = Color RED
    selection 41 = pin 16 & pin 18 = GPIO23 GPIO24 = Color YELLOW - V10 only.
    selection 99 = ALL OFF
    selection 999 = msg.ledpin - Programable selector

Readme

Keywords

Package Sidebar

Install

npm i node-red-contrib-ats-led-2

Weekly Downloads

0

Version

0.4.9

License

Apache-2.0

Unpacked Size

54.9 kB

Total Files

12

Last publish

Collaborators

  • macox