Commit be12ed4f authored by Federico Meloda's avatar Federico Meloda

added abort to led and sound

parent 5ca16684
......@@ -40,6 +40,7 @@ class ColorManager(Thread):
def lights_off(self):
ws2812.write2812(self.spi, [(0, 0, 0) * 4])
def get_color(self):
if self.current_color.green + self.current_rand > 80:
self.current_rand = -randint(1, 8)
......
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