<filename>ar/deprecated/test_idStrips.py<gh_stars>1-10
#!/usr/bin/env python

import fastopc, time
import numpy as np
import functionLib as lib

nStrips = 16
lStrip  = 64
nLed    = nStrips*lStrip
client = fastopc.FastOPC('localhost:7890')

on = np.zeros([nLed,3])
for i in range(0, nStrips):
    base=lStrip*i
    on[base:base+i+1]  = [0,0,255]
off = np.zeros_like(on)

while True:
    client.putPixels(0, on)
    time.sleep(0.25)
    client.putPixels(0, off)
    time.sleep(0.25)

<filename>ar/deprecated/test_idStrips.py<gh_stars>1-10
#!/usr/bin/env python

import fastopc, time
import numpy as np
import functionLib as lib

nStrips = 16
lStrip  = 64
nLed    = nStrips*lStrip
client = fastopc.FastOPC('localhost:7890')

on = np.zeros([nLed,3])
for i in range(0, nStrips):
    base=lStrip*i
    on[base:base+i+1]  = [0,0,255]
off = np.zeros_like(on)

while True:
    client.putPixels(0, on)
    time.sleep(0.25)
    client.putPixels(0, off)
    time.sleep(0.25)

#!/usr/bin/env python