mirror of
https://github.com/naruxde/revpimodio2.git
synced 2026-09-30 23:04:29 +02:00
feat: Add more colors in constants for a RGB status LED
On the Connect 4, the status LEDs are RGB. By switching several LEDs, further colors can be generated as red, green, blue.
This commit is contained in:
1 parent
276ea8dd72
commit
579617d223
2 files changed
+13
-1
No files matched your search
@@ -8,7 +8,11 @@ __license__ = "LGPLv2"
|
||||
OFF = 0
|
||||
GREEN = 1
|
||||
RED = 2
|
||||
ORANGE = 3
|
||||
BLUE = 4
|
||||
CYAN = 5
|
||||
MAGENTA = 6
|
||||
WHITE = 7
|
||||
RISING = 31
|
||||
FALLING = 32
|
||||
BOTH = 33
|
||||
@@ -54,8 +58,16 @@ def consttostr(value) -> str:
|
||||
return "GREEN"
|
||||
elif value == 2:
|
||||
return "RED"
|
||||
elif value == 3:
|
||||
return "ORANGE"
|
||||
elif value == 4:
|
||||
return "BLUE"
|
||||
elif value == 5:
|
||||
return "CYAN"
|
||||
elif value == 6:
|
||||
return "MAGENTA"
|
||||
elif value == 7:
|
||||
return "WHITE"
|
||||
elif value == 31:
|
||||
return "RISING"
|
||||
elif value == 32:
|
||||
|
||||
Reference in new issue
Block a user