Skip to content

Example: Find by Serial Number

arvydas edited this page Apr 15, 2013 · 2 revisions

This example shows how to find BlinkStick by serial number.

from blinkstick import blinkstick

bstick = blinkstick.find_by_serial("BS000001-1.0")

if bstick is None:
    print "Not found..."
else: 
    print "BlinkStick found. Current color: " + bstick.get_color(color_format="hex")