switch case number of cases 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;
}