I agree about the set_mode() function.
However this has nothing to do with the problem i am experiencing.
With the code above i sometimes get connection errrors , sometimes a list index out of range,
and if it runs a few minutes 4 leds stay on the same colors , while other 4 are morphing.
The only fix is to remove the blinkstick from the usb port and connect it again.
highly annoying and almost unusable. Sometimes i have to reinsert it 3 or more times to get rid
of the 4 led problem.
Could support take a look at this please?
System used:
windows 7
python 2.7.9
blinkstick python modules
Tried it again the program quit after 1 minute with following error:
Traceback (most recent call last):
File "blinkmorph.py", line 21, in <module>
led.morph(steps=100, name="green", duration=duration)
File "C:\Python27\lib\site-packages\blinkstick\blinkstick.py", line 713, in mo
rph
r_start, g_start, b_start = _remap_rgb_value_reverse(self._get_color_rgb(ind
ex), self.max_rgb_value)
File "C:\Python27\lib\site-packages\blinkstick\blinkstick.py", line 376, in _g
et_color_rgb
return [device_bytes[1], device_bytes[2], device_bytes[3]]
File "C:\Python27\lib\UserList.py", line 31, in __getitem__
def __getitem__(self, i): return self.data[i]
IndexError: list index out of range