メイン・コンテンツまでスキップ

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.