Changed Switch to large if statements to control flow. Now compiles in Arduino IDE.