arvydas / blinkstick-python

BlinkStick Python interface to control devices connected to the computer
Other
136 stars 53 forks source link

A pulse at any index always turns off the led at index 0 #36

Open russellpierce opened 9 years ago

russellpierce commented 9 years ago

I just purchased a BlinkStick strip (serial BS002857-3.0) and have been working with it via the python command line (blinkstick in /usr/local/lib/python2.7/dist-packages/BlinkStick-1.1.7-py2.7.egg ; and pyusb==1.0.0b1 in /usr/local/lib/python2.7/dist-packages) using Ubuntu 14.04 after enabling access to the device to non-root users. I've found that the command "blinkstick --index=6 --pulse --set-color=purple" will cause the led at index 0 to turn off. That seems true for all other indexes and pulsed colors.

All other indexes appear to be unaffected. Manually digging through the python code it looks like line 631 of blinkstick.py on github points to the problem in that it is sending self.turn_off() without also passing the index, so it defaults to turning off the led at index 0 before beginning the pulse.

Findarato commented 3 years ago

I wish I could get index 0 to turn on at all