#include "Arduino.h"
void setup() {
Serial.begin(115200);
}
void loop() {
int var=1;
switch(var)
{
case 1:
Serial.println("var is 1");
break;
case 2:
Serial.println("var is 2");
break;
default:
Serial.println("Not match any case!");
break;
}
while(true); //ให้โปรแกรมหยุดตรงนี้
}