pynq.lib.rgbled Module¶
The pynq.lib.rgbled module is a driver for controlling onboard Red-Green-Blue (RGB) Light Emitting Diodes (LEDs).
-
class
pynq.lib.rgbled.
RGBLED
(index, ip_name='rgbleds_gpio', start_index=inf)[source]¶ Bases:
object
This class controls the onboard RGB LEDs.
-
index
¶ The index of the RGB LED. Can be an arbitrary value.
Type: int
-
_rgbleds_val
¶ Global value of the RGBLED GPIO pins.
Type: int
-
_rgbleds_start_index
¶ Global value representing the lowest index for RGB LEDs
Type: int
-
on
(color)[source]¶ Turn on a single RGB LED with a color value (see color constants).
Parameters: color (int) – Color of RGB specified by a 3-bit RGB integer value. Returns: Return type: None
-