#!/usr/bin/env python

# Open Pixel Control client: All lights to solid white

import opc, time

numLEDs = 6000
client = opc.Client('localhost:8080')

black = [ (0,0,0) ] * numLEDs
#white = [ (0,0,0) ] * numLEDs
white = [ (255,255,255) ] * numLEDs

while True:
    client.put_pixels(white)
    time.sleep(0.05)
    client.put_pixels(black)
    time.sleep(0.05)
