mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
3ca4456c2b
Separation of class LED selection and state control. The label of the LED corresponds to the silk screen of the iot2050. Before we use one list to enumerate all the led and its state. like: User1 Led Red User1 Led Green User1 Led Orange User2 Led Red User2 Led Green User2 Led Orange if we need to add or delete the LED, we should change this list After Separation of class LED selection and state control one is Led selection: USER1 USER2 the other is status selection: Green Red Orange For this structure, if the led or status changes, We don't need to enumerate all the states. Also there is a problem with the old version: When we use one node to control led show green, then we use another node to control led show red. The result we expect is led red, but the actually result is led orange. This is caused the previous green do not turn off. State change is wrong. This refact would also fix it. Signed-off-by: chao zeng <chao.zeng@siemens.com> Signed-off-by: chao zeng <chao.zeng@siemens.com> |
||
---|---|---|
.. | ||
Arduino | ||
BBB | ||
blink1 | ||
blinkstick | ||
digiRGB | ||
heatmiser | ||
HummingboardGPIO | ||
intel | ||
LEDborg | ||
makey | ||
mcp3008 | ||
neopixel | ||
physical-web | ||
Pibrella | ||
PiFace | ||
PiGpio | ||
pigpiod | ||
PiLcd | ||
PiLiter | ||
PiSrf | ||
scanBLE | ||
sensehat | ||
sensehatsim | ||
sensorTag | ||
unicorn | ||
wemo |