Arduino code uploaded success but nothing happens arduino uno

I don't need a compiler to see all the warnings, a ton of "label not used"

Somewhere\DamnedIRemote.ino: In function 'void loop()':
Somewhere\DamnedIRemote.ino:88:24: warning: statement has no effect [-Wunused-value]
       case1: 0xBA45FF00;//motor1 power on/off speed=0 ("one_btn")
                        ^
Somewhere\DamnedIRemote.ino:94:24: warning: statement has no effect [-Wunused-value]
       case2: 0xE718FF00;//motor1 speed up (up_btn)
                        ^
Somewhere\DamnedIRemote.ino:101:24: warning: statement has no effect [-Wunused-value]
       case3: 0xAD52FF00;// motor1 speed down (down_btn)
                        ^
Somewhere\DamnedIRemote.ino:108:24: warning: statement has no effect [-Wunused-value]
       case4: 0xBB44FF00;//motor2 power on speed 0 "four_btn"
                        ^
Somewhere\DamnedIRemote.ino:114:24: warning: statement has no effect [-Wunused-value]
       case5: 0xA55AFF00;//motor2 speed up (FORWARD_btn)
                        ^
Somewhere\DamnedIRemote.ino:121:24: warning: statement has no effect [-Wunused-value]
       case6: 0xF708FF00;// motor2 speed down (REWIND_btn)
                        ^
Somewhere\DamnedIRemote.ino:88:7: warning: label 'case1' defined but not used [-Wunused-label]
       case1: 0xBA45FF00;//motor1 power on/off speed=0 ("one_btn")
       ^~~~~
Somewhere\DamnedIRemote.ino:94:7: warning: label 'case2' defined but not used [-Wunused-label]
       case2: 0xE718FF00;//motor1 speed up (up_btn)
       ^~~~~
Somewhere\DamnedIRemote.ino:101:7: warning: label 'case3' defined but not used [-Wunused-label]
       case3: 0xAD52FF00;// motor1 speed down (down_btn)
       ^~~~~
Somewhere\DamnedIRemote.ino:108:7: warning: label 'case4' defined but not used [-Wunused-label]
       case4: 0xBB44FF00;//motor2 power on speed 0 "four_btn"
       ^~~~~
Somewhere\DamnedIRemote.ino:114:7: warning: label 'case5' defined but not used [-Wunused-label]
       case5: 0xA55AFF00;//motor2 speed up (FORWARD_btn)
       ^~~~~
Somewhere\DamnedIRemote.ino:121:7: warning: label 'case6' defined but not used [-Wunused-label]
       case6: 0xF708FF00;// motor2 speed down (REWIND_btn)
       ^~~~~

You seem to have no clue how a proper switch case statement is structured.
Look that up again.

1 Like