...
 
Commits (2)
...@@ -40,6 +40,7 @@ class ColorManager(Thread): ...@@ -40,6 +40,7 @@ class ColorManager(Thread):
def lights_off(self): def lights_off(self):
ws2812.write2812(self.spi, [(0, 0, 0) * 4]) ws2812.write2812(self.spi, [(0, 0, 0) * 4])
def get_color(self): def get_color(self):
if self.current_color.green + self.current_rand > 80: if self.current_color.green + self.current_rand > 80:
self.current_rand = -randint(1, 8) self.current_rand = -randint(1, 8)
......
version https://git-lfs.github.com/spec/v1
oid sha256:39c70b878e2e981c82f381cc9063d0874b4a911f6d3decb5bf9cb2c84fa72c0a
size 7185292
version https://git-lfs.github.com/spec/v1
oid sha256:5dc237ce1c08a365741d2339be2cab393d554556b14aa634650849a6b5fe3636
size 1409850