MCPcopy Index your code

hub / github.com/arvydas/blinkstick-python / functions

Functions73 in github.com/arvydas/blinkstick-python

↓ 34 callersMethodset_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 callersMethodline
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 callersMethod_usb_ctrl_transfer
(self, bmRequestType, bRequest, wValue, wIndex, data_or_wLength)
blinkstick/blinkstick.py:234
↓ 8 callersMethodget_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 callersMethodset_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 callersFunction_remap_color
(value, max_value)
blinkstick/blinkstick.py:1624
↓ 4 callersFunction_find_blicksticks
(find_all=True)
blinkstick/blinkstick.py:1547
↓ 4 callersMethodsend_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 callersMethod_refresh_device
(self)
blinkstick/blinkstick.py:262
↓ 3 callersFunction_remap_color_reverse
(value, max_value)
blinkstick/blinkstick.py:1627
↓ 3 callersMethod_usb_get_string
(self, device, index)
blinkstick/blinkstick.py:222
↓ 3 callersMethodset_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 callersMethod_coord_to_index
(self, x, y)
blinkstick/blinkstick.py:1223
↓ 2 callersMethod_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 callersMethod_determine_report_id
(self, led_count)
blinkstick/blinkstick.py:493
↓ 2 callersMethod_determine_rgb
(self, red=0, green=0, blue=0, name=None, hex=None)
blinkstick/blinkstick.py:422
↓ 2 callersMethod_get_color_rgb
(self, index=0)
blinkstick/blinkstick.py:444
↓ 2 callersMethod_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 callersFunction_remap
(value, leftMin, leftMax, rightMin, rightMax)
blinkstick/blinkstick.py:1613
↓ 2 callersFunction_remap_rgb_value_reverse
(rgb_val, max_value)
blinkstick/blinkstick.py:1635
↓ 2 callersFunctionfind_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 callersMethodget_serial
Returns the serial number of device.:: BSnnnnnn-1.0 || | | |- Software minor version || | |--- S
blinkstick/blinkstick.py:270
↓ 2 callersMethodmorph
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 callersMethod__init__
Constructor for the class. @type error_reporting: Boolean @param error_reporting: display errors if they occur during commu
blinkstick/blinkstick.py:203
↓ 1 callersMethod_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 callersMethod_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 callersMethod_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 callersFunction_remap_rgb_value
(rgb_val, max_value)
blinkstick/blinkstick.py:1630
↓ 1 callersMethodclear
Set all pixels to black in the frame buffer.
blinkstick/blinkstick.py:1067
↓ 1 callersFunctionfind_first
Find first attached BlinkStick. @rtype: BlinkStick @return: BlinkStick object or None if no devices are found
blinkstick/blinkstick.py:1575
↓ 1 callersMethodget_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 callersMethodget_variant
Get the product variant of the device. @rtype: int @return: BlinkStick.UNKNOWN, BlinkStick.BLINKSTICK, BlinkStick.BLINKSTICK
blinkstick/blinkstick.py:302
↓ 1 callersMethodopen_device
Open device. @param d: Device to open
blinkstick/blinkstick.py:816
↓ 1 callersFunctionread
(fname)
setup.py:8
↓ 1 callersMethodrectangle
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 callersMethodsend_data_all
Send data to all channels
blinkstick/blinkstick.py:1119
↓ 1 callersMethodset_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 callersMethodturn_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
Methodblink
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
Methodclear
Set all pixels to black in the cached matrix
blinkstick/blinkstick.py:1503
Methodconnect
Connect to the first BlinkStick found @type serial: str @param serial: Select the serial number of BlinkStick
blinkstick/blinkstick.py:1087
Functionfind_all
Find all attached BlinkStick devices. @rtype: BlinkStick[] @return: a list of BlinkStick objects or None if no devices found
blinkstick/blinkstick.py:1561
Functionget_blinkstick_package_version
()
blinkstick/blinkstick.py:1640
Methodget_color
Get the current device color in the defined format. Currently supported formats: 1. rgb (default) - Returns values as 3
blinkstick/blinkstick.py:460
Methodget_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
Methodget_description
Get the description of the device @rtype: str @return: Device description
blinkstick/blinkstick.py:361
Methodget_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
Methodget_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
Methodget_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
Methodget_led_count
Get number of LEDs for supported devices @rtype: int @return: Number of LEDs
blinkstick/blinkstick.py:604
Methodget_manufacturer
Get the manufacturer of the device @rtype: str @return: Device manufacturer's name
blinkstick/blinkstick.py:290
Methodget_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
Methodget_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
Methodget_variant_string
Get the product variant of the device as string. @rtype: string @return: "BlinkStick", "BlinkStick Pro", etc
blinkstick/blinkstick.py:337
Methodnumber
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
Methodoff
Set all pixels to black in on the device.
blinkstick/blinkstick.py:1080
Methodpulse
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
Methodsend_data
Send data stored in the internal buffer to the channel. @param channel: - 0 - R pin on BlinkStick Pro board
blinkstick/blinkstick.py:1511
Methodset_error_reporting
Enable or disable error reporting @type error_reporting: Boolean @param error_reporting: display errors if they occur durin
blinkstick/blinkstick.py:373
Methodset_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
Methodset_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
Methodset_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
Methodset_led_count
Set number of LEDs for supported devices @type count: int @param count: number of LEDs to control
blinkstick/blinkstick.py:592
Methodset_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
Methodset_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
Methodset_random_color
Sets random color to the device.
blinkstick/blinkstick.py:697
Methodshift_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
Methodshift_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
Methodshift_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
Methodshift_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