[][src]Module rmicrobit::buttons::builtin

Access to the micro:bit's built-in buttons.

This module defines:

The normal way to access these is via the re-exports in the buttons module.

Functions

from_pins

Make ButtonA and ButtonB from the GPIO pins.

Type Definitions

ABMonitor

Wrapper for the micro:bit's two buttons generating click events on release.

ABMonitorWithHold

Wrapper for the micro:bit's two buttons generating click and hold events.

ButtonA

The micro:bit's 'A' (left) button, with no debouncing.

ButtonAMonitorWithHold

Wrapper for the micro:bit's 'A' (left) button generating click and hold events.

ButtonB

The micro:bit's 'B' (right) button, with no debouncing.

ButtonBMonitorWithHold

Wrapper for the micro:bit's 'B' (right) button generating click and hold events.

EagerButtonAMonitor

Wrapper for the micro:bit's 'A' (left) button generating click events on press.

EagerButtonBMonitor

Wrapper for the micro:bit's 'B' (right) button generating click events on press.

LazyButtonAMonitor

Wrapper for the micro:bit's 'A' (left) button generating click events on release.

LazyButtonBMonitor

Wrapper for the micro:bit's 'B' (right) button generating click events on release.