comparison light9/Effects.py @ 1254:da8a4696227f

make the rgb strip work more like the neo ones Ignore-this: e272be49d61373e188f7da5de19c273b
author drewp@bigasterisk.com
date Sat, 13 Jun 2015 06:28:30 +0000
parents c98a239e0d0b
children 0bfaeaa40cfe
comparison
equal deleted inserted replaced
1253:7817e1ef0ff0 1254:da8a4696227f
16 return f 16 return f
17 17
18 @register 18 @register
19 class Strip(object): 19 class Strip(object):
20 """list of r,g,b tuples for sending to an LED strip""" 20 """list of r,g,b tuples for sending to an LED strip"""
21 which = 'L' # LR means both 21 which = 'L' # LR means both. W is the wide one
22 pixels = [] 22 pixels = []
23 @classmethod 23 @classmethod
24 def solid(cls, which='L', color=(1,1,1), hsv=None): 24 def solid(cls, which='L', color=(1,1,1), hsv=None):
25 """hsv overrides color""" 25 """hsv overrides color"""
26 if hsv is not None: 26 if hsv is not None: