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:
Um… literally… no problem no more. Fixed. De-bugged.
My apologies – I did see a pointer to that item when I installed the BlinkStick software but misunderstood it – I expected to see some sort of truly obscure error message if it were present. ( Though, some to think of it, “codec can’t encode character” is rather obscure. )
Thank you for pointing me at the fix, especially since you had to do it on a Monday.
Merry… Christmas? Boxing Day? Anyway, have a good holiday. My sister and nephew will be very pleased. ( Now to build a couple of Pretty Enclosures… )