turris-colors/test.py
2019-10-25 15:15:12 +02:00

16 lines
683 B
Python

from master import ColourArray
from time import sleep
testColorData = [[[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255],[255,255,255]]]
colorful = [[[255,0,255],[0,255,255],[255,255,0],[0,0,255],[255,0,0],[0,255,0],[255,255,255],[255,0,255],[0,255,255],[255,255,0],[0,0,255],[255,0,0]]]
rainbow = [[[255,0,0],[255,127,0],[255,255,0],[127,255,0],[0,255,0],[0,255,127],[0,255,255],[0,127,255],[0,0,255],[255,0,255]]]
c = ColourArray(iplist=('192.168.1.1', ))
while True:
c.send(testColorData)
sleep(2)
c.send(colorful)
sleep(2)
c.send(rainbow)
sleep(2)