forked from pvx/litsimaja
Compare commits
No commits in common. 'eerik-strips' and 'master' have entirely different histories.
eerik-stri
...
master
1 changed files with 0 additions and 14 deletions
@ -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() |
|
||||||
Loading…
Reference in new issue