forked from pvx/litsimaja
Compare commits
4 Commits
eerik-stri
...
feat/chris
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffa77db057 | ||
|
|
a71201d90a | ||
|
|
d811b853a1 | ||
|
|
6d9c4b2f33 |
@@ -1,14 +0,0 @@
|
|||||||
from lib.Program import Program
|
|
||||||
|
|
||||||
def name():
|
|
||||||
return '2-color strips'
|
|
||||||
|
|
||||||
class Strips(Program):
|
|
||||||
def run(self, args = None) -> None:
|
|
||||||
for i in range(self._lm.count_pixels()):
|
|
||||||
if i // 5 % 2:
|
|
||||||
color = (255, 255, 255)
|
|
||||||
else:
|
|
||||||
color = args['color']
|
|
||||||
self._lm.set_pixel_color(i, (color[0] << 16) | (color[1] << 8) | color[2])
|
|
||||||
self._lm.show()
|
|
||||||
Reference in New Issue
Block a user