function in switch case in arduino code example
Example: arduino switch case
switch (var) {
case label1:
// statements
break;
case label2:
// statements
break;
default:
// statements
break;
}
switch (var) {
case label1:
// statements
break;
case label2:
// statements
break;
default:
// statements
break;
}