Main() is hidden from use. Normally setup() and loop() are what you want if using arduino.
Also if y=5 all those if statements will be true. Is that what you want?
Look into using a switch statement.
Main() is hidden from use. Normally setup() and loop() are what you want if using arduino.
Also if y=5 all those if statements will be true. Is that what you want?
Look into using a switch statement.