Skip to content

BlinkStick Pro: Change Color of a Single LED

arvydas edited this page Sep 18, 2014 · 4 revisions
#Import blinkstick module
from blinkstick import blinkstick

#Find the first BlinkStick
bstick = blinkstick.find_first()

#Set the color red on the 12th LED of R channel
bstick.set_color(channel=0, index=12, name="red")
  • channel - the pin on which LEDs are connected
    • 0 - R pin on BlinkStick Pro board
    • 1 - G pin on BlinkStick Pro board
    • 2 - B pin on BlinkStick Pro board
  • index - the index of the LED