mirror of
https://github.com/RGBCube/GDUS
synced 2025-07-28 13:37:45 +00:00
Fix led toggle code 3
This commit is contained in:
parent
bbebd7b63c
commit
91f0093f81
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ async def toggle(number: int) -> str:
|
||||||
led[1] = not led[1]
|
led[1] = not led[1]
|
||||||
gpio.output(led[0], int(led[1]))
|
gpio.output(led[0], int(led[1]))
|
||||||
|
|
||||||
for i, iled in enumerate(turn_off):
|
for i, iled in enumerate(leds):
|
||||||
if iled[0] == led[0]: continue
|
if iled[0] == led[0]: continue
|
||||||
|
|
||||||
gpio.output(led[0], True)
|
gpio.output(led[0], True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue