Skip to content

Example: information about BlinkStick

arvydas edited this page Apr 15, 2013 · 3 revisions

This example shows how to access all available information within BlinkStick.

from blinkstick import blinkstick

for bstick in blinkstick.find_all():
    print "Found device:"
    print "    Manufacturer:  " + bstick.get_manufacturer()
    print "    Description:   " + bstick.get_description()
    print "    Serial:        " + bstick.get_serial()
    print "    Current Color: " + bstick.get_color(color_format="hex")
    print "    Info Block 1:  " + bstick.get_info_block1()
    print "    Info Block 2:  " + bstick.get_info_block2()

Clone this wiki locally