Skip to content

button

Button constants.

Attributes:

Name Type Description
PRESSED int

Value of a pressed button.

RELEASED int

Value of a released button.

SAMPLE_PERIOD int

Sample period for debouncing the button in ms.

PRESSED module-attribute

PRESSED: int = const(1)

Value of a pressed button.

RELEASED module-attribute

RELEASED: int = const(0)

Value of a released button.

SAMPLE_PERIOD module-attribute

SAMPLE_PERIOD: int = const(6)

Sample period for debouncing the button in ms.