Compare commits

..

No commits in common. 'eerik-strips' and 'master' have entirely different histories.

  1. 14
      pyleds/program/eerik/Strips.py

@ -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…
Cancel
Save