I bought a couple of these from Adafruit for Christmas presents and tonight I put one together to see how hard it would be.
After installing the Linux package I was able to perform these operations successfully:
blinkstick --pulse red (green, white, …)
run the 'random color" example from github.
run the “turn it off” example.
However, the blinkstick --info command fails:
frank@baloo:~/Projects/BlinkStick$ blinkstick --info
Found device:
Traceback (most recent call last):
File "/usr/local/bin/blinkstick", line 308, in <module>
sys.exit(main())
File "/usr/local/bin/blinkstick", line 254, in main
print_info(stick)
File "/usr/local/bin/blinkstick", line 78, in print_info
print(" Manufacturer: {0}".format(stick.get_manufacturer()))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0409' in position 0: ordinal not in range(128)
as does the “information” example:
frank@baloo:~/Projects/BlinkStick$ python info.py
Found device:
Manufacturer: Љ
Description: Љ
Serial: Љ
Current Color: #000000
Info Block 1:
Info Block 2:
From lsusb, this appears to be the BlinkStick device:
Bus 001 Device 007: ID 20a0:41e5 Clay Logic
This may or may not be relevant:
frank@baloo:~/Projects/BlinkStick$ python -V
Python 2.7.6
Any suggestions you can make will be appreciated.
Thank you.