1
Fork 0
mirror of https://github.com/RGBCube/GDUS synced 2025-07-28 05:27:45 +00:00

Fix led toggle code 3

This commit is contained in:
RGBCube 2024-01-10 09:10:30 +03:00
parent bbebd7b63c
commit 91f0093f81
No known key found for this signature in database

View file

@ -23,7 +23,7 @@ async def toggle(number: int) -> str:
led[1] = not 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
gpio.output(led[0], True)