Commit 18d43dc4 authored by Aljaž Srebrnič's avatar Aljaž Srebrnič

Removed extra cruft

parent 36b3ec9f
......@@ -86,13 +86,10 @@ class ColorManager(Thread):
def run(self):
self.running:
while self.running:
if self.stato == 0: self.get_color()
elif self.stato == 1: self.power()
elif self.stato == 2: self.fade()
}
switch[self.stato]()
ws2812.write2812(self.spi, [self.current_color.as_tuple() * 4])
sleep(0.001)
......@@ -127,10 +124,8 @@ def main():
cm.start()
cm.start_pow()
elif messagedata == b"stage_1_separation":
cm.burn()
cm.start_pow()
elif messagedata == b"stage_2_separation":
cm.burn()
cm.start_fade()
elif messagedata == b"abort":
cm.lights_off()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment