Button
A button will detect if a user presses it.
Information
Connection scheme
Scheme made with Fritzing.
Functions
Await Input
Await Input State
Awaits a digital value.
void function_0_button(){
int value = digitalRead(pin_0_button);
delay(200);
function_0_button();
}
int value = digitalRead(pin_0_button);
delay(200);
void function_0_button(){
int value = digitalRead(pin_0_button);
delay(200);
state = 1;
}
Last modified April 12, 2022: updated code snippets (e7162de)