Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 652 Bytes

File metadata and controls

35 lines (27 loc) · 652 Bytes

led_python

Visualzation of led strip in python

2021-07-17.20.51.20.mov
2021-07-18.10.15.28.mov


Run

Init Led library:

from Led import Led
led = Led(led_num = 20, pix_width = 40, pix_offset = 20)

Run one effect:

from effects import ef1
for _ in ef2(led):
    pass

Run multiple effects:

from effects import ef1, ef2
ef1_gen = ef1(led, delay)
ef2_gen = ef2(led, delay)
while True:
    ef1_gen.__next__()
    ef2_gen.__next__()