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
Chao Zeng 3ca4456c2b
Refact: Separate LED selection and state control (#957)
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>
2022-10-26 15:17:28 +01:00
..
Arduino run snyk checks and lint packages, bump notify. 2022-01-22 22:23:41 +00:00
BBB Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
blink1 Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
blinkstick run snyk checks and lint packages, bump notify. 2022-01-22 22:23:41 +00:00
digiRGB Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
heatmiser Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
HummingboardGPIO Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
intel Refact: Separate LED selection and state control (#957) 2022-10-26 15:17:28 +01:00
LEDborg fix python2 fallback check (#892) 2022-03-11 17:49:55 +00:00
makey Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
mcp3008 run snyk checks and lint packages, bump notify. 2022-01-22 22:23:41 +00:00
neopixel fix python2 fallback check (#892) 2022-03-11 17:49:55 +00:00
physical-web Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
Pibrella fix python2 fallback check (#892) 2022-03-11 17:49:55 +00:00
PiFace Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
PiGpio gpio retry failing pin connection 2022-07-14 19:00:58 +01:00
pigpiod Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
PiLcd fix python2 fallback check (#892) 2022-03-11 17:49:55 +00:00
PiLiter fix python2 fallback check (#892) 2022-03-11 17:49:55 +00:00
PiSrf fix python2 fallback check (#892) 2022-03-11 17:49:55 +00:00
scanBLE A whole bunch of whitespace linting - no functional changes 2019-08-11 13:37:15 +01:00
sensehat bump sensehat version for python3 check fix 2022-07-15 14:13:51 +01:00
sensehatsim Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
sensorTag Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
unicorn bump unicorn package 2022-05-18 16:25:16 +01:00
wemo fix: upgrade node-ssdp from 3.2.5 to 3.3.0 (#922) 2022-06-04 22:07:04 +01:00