Skip to main content
Version: 4.16

Buttons

A class for accessing a physical button.

Public Functions#

voidinit()
Perform configuration of IO pins.
unsigned intsample()
Sample button states.

Public Functions Documentation#

init#

static void init()

Perform configuration of IO pins.

sample#

static unsigned int sample()

Sample button states.

Returns:

the sampled state of the buttons.