switch arduino case 1...5 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;
}