pynq.lib.button Module

The pynq.lib.rgbled module is a driver for reading values from onboard push-buttons and waiting for button-triggered events.

class pynq.lib.button.Button(device)[source]

Bases: object

This class controls the onboard push-buttons.

_impl

An object with appropriate Button methods

Type:object
read()[source]

Read the current value of the button.

wait_for_value(value)[source]

Wait for the button to be pressed or released.

Parameters:value (int) – 1 to wait for press or 0 to wait for release