pynq.lib.led Module¶
The pynq.lib.rgbled module is a driver for controlling onboard single-color Light Emitting Diodes (LEDs).
-
class
pynq.lib.led.
LED
(index)[source]¶ Bases:
object
This class controls the onboard LEDs.
-
index
¶ int – The index of the onboard LED, starting from 0.
-
read
()[source]¶ Retrieve the LED state.
Returns: Either 0 if the LED is off or 1 if the LED is on. Return type: int
-