# BlinkStick Square or Strip - Python example

**URL:** <https://forums.blinkstick.com/t/blinkstick-square-or-strip-python-example/593>\
**Category:** Uncategorized\
**Created:** [September 17, 2016, 11:32pm UTC](https://forums.blinkstick.com/t/blinkstick-square-or-strip-python-example/593 "2016-09-17T23:32:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![holgermayer](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/h/f475e1/32.png) [@holgermayer](https://forums.blinkstick.com/u/holgermayer)\
**Post date:** [September 17, 2016, 11:32pm UTC](https://forums.blinkstick.com/t/blinkstick-square-or-strip-python-example/593/1 "2016-09-17T23:32:20Z")

</div>

Hi there,

I understand that I can let the stick light up by using the Python code

> bstick.blink(name=“red”)

But how do I select the individual LEDs on a BlinkStick Square or Strip?  
Is it the same as with the Pro, i.e.

> bstick.set\_color(channel=0, index=12, name=“red”)

Would be nice to see some examples.

---

<div class="post-metadata">

**Author:** ![p0ke](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/p0ke/32/14_2.png) [@p0ke](https://forums.blinkstick.com/u/p0ke)\
**Post date:** [September 18, 2016, 2:27pm UTC](https://forums.blinkstick.com/t/blinkstick-square-or-strip-python-example/593/2 "2016-09-18T14:27:08Z")

</div>

Hi Holger and welcome to the forums.

Your command is basicly correct but keep in mind that a Square only has 8 leds. “index=12” will not work for a Square/Strip. Index=0 up to index=7 will work.

---

<div class="post-metadata">

**Author:** ![holgermayer](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/h/f475e1/32.png) [@holgermayer](https://forums.blinkstick.com/u/holgermayer)\
**Post date:** [September 18, 2016, 3:24pm UTC](https://forums.blinkstick.com/t/blinkstick-square-or-strip-python-example/593/3 "2016-09-18T15:24:47Z")

</div>

That makes sense. 😉

Thanks for your answer! 🙂
