j5.components.button module¶
Classes for Button.
Bases:
j5.components.component.Component
A button.
An integer to identify the component on a board.
Returns: component identifier.
Get the interface class that is required to use this component.
Returns: interface class.
Get the current pushed state of the button.
Returns: current pushed state of the button.
Halt the program until this button is pushed.
Bases:
j5.components.component.Interface
An interface containing the methods required for a button.
Get the state of a button.
Parameters: identifier – Button identifier to fetch state of. Returns: state of the button.
Halt the program until this button is pushed.
Parameters: identifier – Button identifier to wait for.