Home | Trees | Indices | Help |
---|
|
object --+ | BlinkStick
BlinkStick class is designed to control regular BlinkStick devices, or BlinkStick Pro devices in Normal or Inverse modes. Please refer to BlinkStick.set_mode for more details about BlinkStick Pro device modes.
Code examples on how you can use this class are available here:
https://github.com/arvydas/blinkstick-python/wiki
Instance Methods | |||
|
|||
str |
|
||
str |
|
||
str |
|
||
|
|||
|
|||
(int, int, int) or str |
|
||
|
|||
int[0..64*3] |
|
||
|
|||
int |
|
||
str |
|
||
str |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
|
|||
|
|||
int |
|
||
Inherited from |
Class Variables | |
HEX_COLOR_RE = re.compile(r'^#
|
|
inverse = False
|
|
error_reporting = True
|
|
max_rgb_value = 255
|
Properties | |
Inherited from |
Method Details |
Constructor for the class.
|
Returns the serial number of device.: BSnnnnnn-1.0 || | | |- Software minor version || | |--- Software major version || |-------- Denotes sequential number ||----------- Denotes BlinkStick device Software version defines the capabilities of the device
|
Get the manufacturer of the device
|
Get the description of the device
|
Enable or disable error reporting
|
Set the color to the device as RGB
|
Get the current device color in the defined format. Currently supported formats:
|
Send LED data frame.
|
Get LED data frame on the device.
|
Set device mode for BlinkStick Pro. Device currently supports the following modes:
You can find out more about BlinkStick Pro modes: http://www.blinkstick.com/help/tutorials/blinkstick-pro-modes
|
Get BlinkStick Pro mode. Device currently supports the following modes:
You can find out more about BlinkStick Pro modes: http://www.blinkstick.com/help/tutorials/blinkstick-pro-modes
|
Get the infoblock1 of the device. This is a 32 byte array that can contain any data. It's supposed to hold the "Name" of the device making it easier to identify rather than a serial number.
|
Get the infoblock2 of the device. This is a 32 byte array that can contain any data.
|
Sets the infoblock1 with specified string. It fills the rest of 32 bytes with zeros.
|
Sets the infoblock2 with specified string. It fills the rest of 32 bytes with zeros.
|
Morph to the specified color from black and back again.
|
Blink the specified color.
|
Morph to the specified color.
|
Open device.
|
Get the value of inverse mode. This applies only to BlinkStick. Please use set_mode for BlinkStick Pro to permanently set the inverse mode to the device.
|
Set inverse mode. This applies only to BlinkStick. Please use set_mode for BlinkStick Pro to permanently set the inverse mode to the device.
|
Set RGB color limit. {set_color} function will automatically remap the values to maximum supplied.
|
Get RGB color limit. {set_color} function will automatically remap the values to maximum set.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Oct 3 18:58:12 2014 | http://epydoc.sourceforge.net |