A node specifically written for ats/ncd hat to control RGBY led
1 = on 0 = off
The complete msg.payload contains the availble output.. MLC 7/5/23;
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