Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/arvydas/blinkstick-python
/ functions
Functions
73 in github.com/arvydas/blinkstick-python
⨍
Functions
73
◇
Types & classes
4
↓ 34 callers
Method
set_color
Set the color of a single pixel in the internal framebuffer. @type x: int @param x: the x location in the matrix @ty
blinkstick/blinkstick.py:1200
↓ 28 callers
Method
line
Draw a line from x1:y1 and x2:y2 @type x1: int @param x1: the x1 location in the matrix for the start of the line @t
blinkstick/blinkstick.py:1446
↓ 13 callers
Method
_usb_ctrl_transfer
(self, bmRequestType, bRequest, wValue, wIndex, data_or_wLength)
blinkstick/blinkstick.py:234
↓ 8 callers
Method
get_color
Get the current color of a single pixel. @type x: int @param x: x coordinate of the internal framebuffer @type y:
blinkstick/blinkstick.py:1226
↓ 7 callers
Method
set_color
Set the color to the device as RGB @type red: int @param red: Red color intensity 0 is off, 255 is full red intensity
blinkstick/blinkstick.py:382
↓ 5 callers
Function
_remap_color
(value, max_value)
blinkstick/blinkstick.py:1624
↓ 4 callers
Function
_find_blicksticks
(find_all=True)
blinkstick/blinkstick.py:1547
↓ 4 callers
Method
send_data
Send data stored in the internal buffer to the channel. @param channel: - 0 - R pin on BlinkStick Pro board
blinkstick/blinkstick.py:1102
↓ 3 callers
Method
_refresh_device
(self)
blinkstick/blinkstick.py:262
↓ 3 callers
Function
_remap_color_reverse
(value, max_value)
blinkstick/blinkstick.py:1627
↓ 3 callers
Method
_usb_get_string
(self, device, index)
blinkstick/blinkstick.py:222
↓ 3 callers
Method
set_color
Set the color of a single pixel @type channel: int @param channel: R, G or B channel @type index: int @param
blinkstick/blinkstick.py:1030
↓ 2 callers
Method
_coord_to_index
(self, x, y)
blinkstick/blinkstick.py:1223
↓ 2 callers
Method
_data_to_message
Helper method to convert a string to byte array of 32 bytes. @type data: str @param data: The data to convert to byte array
blinkstick/blinkstick.py:656
↓ 2 callers
Method
_determine_report_id
(self, led_count)
blinkstick/blinkstick.py:493
↓ 2 callers
Method
_determine_rgb
(self, red=0, green=0, blue=0, name=None, hex=None)
blinkstick/blinkstick.py:422
↓ 2 callers
Method
_get_color_rgb
(self, index=0)
blinkstick/blinkstick.py:444
↓ 2 callers
Method
_hex_to_rgb
Convert a hexadecimal color value to a 3-tuple of integers suitable for use in an ``rgb()`` triplet specifying that color. T
blinkstick/blinkstick.py:895
↓ 2 callers
Function
_remap
(value, leftMin, leftMax, rightMin, rightMax)
blinkstick/blinkstick.py:1613
↓ 2 callers
Function
_remap_rgb_value_reverse
(rgb_val, max_value)
blinkstick/blinkstick.py:1635
↓ 2 callers
Function
find_by_serial
Find BlinkStick device based on serial number. @rtype: BlinkStick @return: BlinkStick object or None if no devices are found
blinkstick/blinkstick.py:1588
↓ 2 callers
Method
get_serial
Returns the serial number of device.:: BSnnnnnn-1.0 || | | |- Software minor version || | |--- S
blinkstick/blinkstick.py:270
↓ 2 callers
Method
morph
Morph to the specified color. @type red: int @param red: Red color intensity 0 is off, 255 is full red intensity @t
blinkstick/blinkstick.py:762
↓ 1 callers
Method
__init__
Constructor for the class. @type error_reporting: Boolean @param error_reporting: display errors if they occur during commu
blinkstick/blinkstick.py:203
↓ 1 callers
Method
_name_to_hex
Convert a color name to a normalized hexadecimal color value. The color name will be normalized to lower-case before being l
blinkstick/blinkstick.py:871
↓ 1 callers
Method
_name_to_rgb
Convert a color name to a 3-tuple of integers suitable for use in an ``rgb()`` triplet specifying that color. The color name
blinkstick/blinkstick.py:954
↓ 1 callers
Method
_normalize_hex
Normalize a hexadecimal color value to the following form and return the result:: #[a-f0-9]{6} In other words,
blinkstick/blinkstick.py:913
↓ 1 callers
Function
_remap_rgb_value
(rgb_val, max_value)
blinkstick/blinkstick.py:1630
↓ 1 callers
Method
clear
Set all pixels to black in the frame buffer.
blinkstick/blinkstick.py:1067
↓ 1 callers
Function
find_first
Find first attached BlinkStick. @rtype: BlinkStick @return: BlinkStick object or None if no devices are found
blinkstick/blinkstick.py:1575
↓ 1 callers
Method
get_led_data
Get LED data frame on the device. @type count: int @param count: How much data to retrieve. Can be in the range of 0..64*3
blinkstick/blinkstick.py:534
↓ 1 callers
Method
get_variant
Get the product variant of the device. @rtype: int @return: BlinkStick.UNKNOWN, BlinkStick.BLINKSTICK, BlinkStick.BLINKSTICK
blinkstick/blinkstick.py:302
↓ 1 callers
Method
open_device
Open device. @param d: Device to open
blinkstick/blinkstick.py:816
↓ 1 callers
Function
read
(fname)
setup.py:8
↓ 1 callers
Method
rectangle
Draw a rectangle with it's corners at x1:y1 and x2:y2 @type x1: int @param x1: the x1 location in the matrix for first corne
blinkstick/blinkstick.py:1421
↓ 1 callers
Method
send_data_all
Send data to all channels
blinkstick/blinkstick.py:1119
↓ 1 callers
Method
set_led_data
Send LED data frame. @type channel: int @param channel: the channel which to send data to (R=0, G=1, B=2) @type da
blinkstick/blinkstick.py:512
↓ 1 callers
Method
turn_off
Turns off LED.
blinkstick/blinkstick.py:703
Method
__init__
Initialize BlinkStickPro class. @type r_led_count: int @param r_led_count: number of LEDs on R channel @type g_led_c
blinkstick/blinkstick.py:988
Method
__init__
Initialize BlinkStickProMatrix class. @type r_columns: int @param r_columns: number of matric columns for R channel
blinkstick/blinkstick.py:1163
Method
_get_color_hex
(self, index=0)
blinkstick/blinkstick.py:456
Method
blink
Blink the specified color. @type red: int @param red: Red color intensity 0 is off, 255 is full red intensity @type
blinkstick/blinkstick.py:735
Method
clear
Set all pixels to black in the cached matrix
blinkstick/blinkstick.py:1503
Method
connect
Connect to the first BlinkStick found @type serial: str @param serial: Select the serial number of BlinkStick
blinkstick/blinkstick.py:1087
Function
find_all
Find all attached BlinkStick devices. @rtype: BlinkStick[] @return: a list of BlinkStick objects or None if no devices found
blinkstick/blinkstick.py:1561
Function
get_blinkstick_package_version
()
blinkstick/blinkstick.py:1640
Method
get_color
Get the current device color in the defined format. Currently supported formats: 1. rgb (default) - Returns values as 3
blinkstick/blinkstick.py:460
Method
get_color
Get the current color of a single pixel. @type channel: int @param channel: the channel of the LED @type index: in
blinkstick/blinkstick.py:1051
Method
get_description
Get the description of the device @rtype: str @return: Device description
blinkstick/blinkstick.py:361
Method
get_info_block1
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
blinkstick/blinkstick.py:619
Method
get_info_block2
Get the infoblock2 of the device. This is a 32 byte array that can contain any data. @rtype: str @return: InfoBlock
blinkstick/blinkstick.py:639
Method
get_inverse
Get the value of inverse mode. This applies only to BlinkStick. Please use L{set_mode} for BlinkStick Pro to permanently set the inve
blinkstick/blinkstick.py:831
Method
get_led_count
Get number of LEDs for supported devices @rtype: int @return: Number of LEDs
blinkstick/blinkstick.py:604
Method
get_manufacturer
Get the manufacturer of the device @rtype: str @return: Device manufacturer's name
blinkstick/blinkstick.py:290
Method
get_max_rgb_value
Get RGB color limit. {set_color} function will automatically remap the values to maximum set. @rtype: int @return: 0
blinkstick/blinkstick.py:861
Method
get_mode
Get BlinkStick Pro mode. Device currently supports the following modes: - 0 - (default) use R, G and B channels to control singl
blinkstick/blinkstick.py:569
Method
get_variant_string
Get the product variant of the device as string. @rtype: string @return: "BlinkStick", "BlinkStick Pro", etc
blinkstick/blinkstick.py:337
Method
number
Render a 3x5 number n at location x,y and r,g,b color @type x: int @param x: the x location in the matrix (left of the numbe
blinkstick/blinkstick.py:1349
Method
off
Set all pixels to black in on the device.
blinkstick/blinkstick.py:1080
Method
pulse
Morph to the specified color from black and back again. @type red: int @param red: Red color intensity 0 is off, 255 is ful
blinkstick/blinkstick.py:709
Method
send_data
Send data stored in the internal buffer to the channel. @param channel: - 0 - R pin on BlinkStick Pro board
blinkstick/blinkstick.py:1511
Method
set_error_reporting
Enable or disable error reporting @type error_reporting: Boolean @param error_reporting: display errors if they occur durin
blinkstick/blinkstick.py:373
Method
set_info_block1
Sets the infoblock1 with specified string. It fills the rest of 32 bytes with zeros. @type data: str @param data:
blinkstick/blinkstick.py:675
Method
set_info_block2
Sets the infoblock2 with specified string. It fills the rest of 32 bytes with zeros. @type data: str @param data:
blinkstick/blinkstick.py:686
Method
set_inverse
Set inverse mode. This applies only to BlinkStick. Please use L{set_mode} for BlinkStick Pro to permanently set the inverse mode to t
blinkstick/blinkstick.py:841
Method
set_led_count
Set number of LEDs for supported devices @type count: int @param count: number of LEDs to control
blinkstick/blinkstick.py:592
Method
set_max_rgb_value
Set RGB color limit. {set_color} function will automatically remap the values to maximum supplied. @type value: int
blinkstick/blinkstick.py:851
Method
set_mode
Set device mode for BlinkStick Pro. Device currently supports the following modes: - 0 - (default) use R, G and B channels to co
blinkstick/blinkstick.py:550
Method
set_random_color
Sets random color to the device.
blinkstick/blinkstick.py:697
Method
shift_down
Shift all LED values in the matrix down @type remove: bool @param remove: whether to remove the pixels on the last column or
blinkstick/blinkstick.py:1295
Method
shift_left
Shift all LED values in the matrix to the left @type remove: bool @param remove: whether to remove the pixels on the last co
blinkstick/blinkstick.py:1242
Method
shift_right
Shift all LED values in the matrix to the right @type remove: bool @param remove: whether to remove the pixels on the last c
blinkstick/blinkstick.py:1268
Method
shift_up
Shift all LED values in the matrix up @type remove: bool @param remove: whether to remove the pixels on the last column or m
blinkstick/blinkstick.py:1322