forked from pvx/litsimaja
parent
545ff966c8
commit
f2e97ed465
1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@ |
||||
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() |
||||
Loading…
Reference in new issue