-
Notifications
You must be signed in to change notification settings - Fork 53
Example: information about BlinkStick
towlerj edited this page May 8, 2020
·
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()
Python 3:
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())