Interface for a physical pushbutton. More...
Public Member Functions | |
| None | start (self) |
| Begin monitoring the pushbutton. | |
| None | stop (self) |
| Stop monitoring the pushbutton. | |
| PushButtonState | get_state (self) |
| Return the current pushbutton state. | |
| None | set_callback (self, PushButtonCallbackIf|None callback) |
| Set or clear the callback object. | |
Interface for a physical pushbutton.
| PushButtonState hardware_io.buttons.push_button_if.PushButtonIf.get_state | ( | self | ) |
Return the current pushbutton state.
Reimplemented in hardware_io.buttons.rpi_gpio_push_button.RpiGpioPushButton.
| None hardware_io.buttons.push_button_if.PushButtonIf.set_callback | ( | self, | |
| PushButtonCallbackIf | None | callback ) |
Set or clear the callback object.
| callback | Event receiver, or None to disable notifications. |
Reimplemented in hardware_io.buttons.rpi_gpio_push_button.RpiGpioPushButton.