|
|
|
@ -24,9 +24,9 @@ class LED:
|
|
|
|
|
with open(self.dir/'color') as f:
|
|
|
|
|
r, g, b = [int(x) for x in f.read().strip().split()]
|
|
|
|
|
with open(self.dir/'brightness') as f:
|
|
|
|
|
brightness = int(f.read.strip())
|
|
|
|
|
brightness = int(f.read().strip())
|
|
|
|
|
with open(self.dir/'autonomous') as f:
|
|
|
|
|
autonomous = bool(f.read.strip())
|
|
|
|
|
autonomous = bool(f.read().strip())
|
|
|
|
|
return LedState(r=r, g=g, b=b, brightness=brightness, autonomous=autonomous)
|
|
|
|
|
|
|
|
|
|
def set(self, state: LedState):
|
|
|
|
|