Hi,
I’m trying to get started with my BlinkStickPro and a NeoMatrix using Python 2.79 on Windows 8.1 x64 and Blinkstick Python API 1.1.6, but I’m getting errors like
Exception: 'HidDevice' object has no attribute 'ctrl_transfer'
If I want to set the mode on the BlinkStickPro using
bstick = blinkstick.find_first()
bstick.set_mode(2)
Then I receive the following error:
f:\Documents\blinkstick-python-master>c:\Python27\python.exe circlethrough.py
Traceback (most recent call last):
File "circlethrough.py", line 33, in <module>
bstick.set_mode(2)
File "f:\Documents\blinkstick-python-master\blinkstick\blinkstick.py", line 49
3, in set_mode
self.device.ctrl_transfer(0x20, 0x9, 0x0004, 0, control_string)
AttributeError: 'HidDevice' object has no attribute 'ctrl_transfer'
The Info Example (Information about Blinkstick) prints out the following:
f:\Documents\blinkstick-python-master>c:\Python27\python.exe blinksticktest.py
Found device:
Manufacturer: Agile Innovative Ltd
Description: BlinkStick
Serial: BS001730-2.2
Current Color: #000000
Info Block 1:
Info Block 2:
Even get_mode() breaks with an error:
f:\Documents\blinkstick-python-master>c:\Python27\python.exe circlethrough.py
Traceback (most recent call last):
File "circlethrough.py", line 33, in <module>
print str(bstick.get_mode())
File "f:\Documents\blinkstick-python-master\blinkstick\blinkstick.py", line 51
1, in get_mode
device_bytes = self.device.ctrl_transfer(0x80 | 0x20, 0x1, 0x0004, 0, 2)
AttributeError: 'HidDevice' object has no attribute 'ctrl_transfer'
What could be the problem?