Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int var_1 = 0;
- int var_2 = 0;
- int var_3 = 0;
- int var_4 = 0;
- int var_5 = 0;
- //--------------------------------
- void setup()
- {
- Serial.begin(9600);
- }
- //--------------------------------
- void loop()
- {
- for (int i = 1; i < 6 ; i++)
- {
- switch (i)
- {
- case 1:
- var_1 = i;
- break;
- case 2:
- var_2 = i;
- break;
- case 3:
- var_3 = i;
- break;
- case 4:
- var_4 = i;
- break;
- case 5:
- var_5 = i;
- break;
- }
- }
- Serial.println(var_1);
- Serial.println(var_2);
- Serial.println(var_3);
- Serial.println(var_4);
- Serial.println(var_5);
- Serial.println();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement