# Python methods for BlinkStickPro/Square

**URL:** <https://forums.blinkstick.com/t/python-methods-for-blinkstickpro-square/126>\
**Category:** Support\
**Created:** [February 26, 2015, 11:23am UTC](https://forums.blinkstick.com/t/python-methods-for-blinkstickpro-square/126 "2015-02-26T11:23:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![arturr](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@arturr](https://forums.blinkstick.com/u/arturr)\
**Post date:** [February 26, 2015, 9:12pm UTC](https://forums.blinkstick.com/t/python-methods-for-blinkstickpro-square/126/3 "2015-02-26T21:12:52Z")

</div>

Thanks for your reply. Now it makes more sense to set mode to 3, didn’t even know there was more than 0,1,2 modes [BlinkStick | BlinkStick Pro Modes](https://www.blinkstick.com/help/tutorials/blinkstick-pro-modes)

When I’m trying to run the code from your post I get the following:

> ```
> C:\Python27\Scripts\bs>set3.py
> 
> ```
> 
> Traceback (most recent call last):  
> File “C:\Python27\Scripts\bs\set3.py”, line 5, in   
> led.set\_mode(3) # you can omit this command after you run it once  
> File “C:\Python27\lib\site-packages\blinkstick\blinkstick.py”, line 493, in set\_mode  
> self.device.ctrl\_transfer(0x20, 0x9, 0x0004, 0, control\_string)  
> AttributeError: ‘HidDevice’ object has no attribute ‘ctrl\_transfer’

> C:\Python27\Scripts\bs\>

Am I missing something?

I can set colors just fine and blinkstick lights up…

EDIT: I think I found the answer: [Control NeoMatrix with BlinkStickPro and Python - #3 by soeren](https://forums.blinkstick.com/t/control-neomatrix-with-blinkstickpro-and-python/97/3)

---

_[View the full topic](https://forums.blinkstick.com/t/python-methods-for-blinkstickpro-square/126)._
