pynq
The pynq.lib.switch module is a driver for reading, and waiting for value changes on onboard switches.
pynq.lib.switch.
Switch
Bases: object
object
This class controls the onboard switches.
_impl
An object with appropriate Switch methods
read
Read the current value of the switch.
wait_for_value
Wait for the switch to be closed or opened.