Switch
A switch works similar to a button to detect an input.
Information
Connection scheme
Scheme made with Fritzing.
Functions
Await Input
Await Input State
Awaits a digital value.
void function_0_Schalter(){
int value = digitalRead(pin_0_switch);
function_0_Schalter();
}
int value = digitalRead(pin_0_switch);
void function_0_Schalter(){
int value = digitalRead(pin_0_switch);
state = 1;
}
Last modified April 12, 2022: updated code snippets (e7162de)