TinyScreen code switch/ case/ break


  • Newbie
  • *
    • Posts: 1
    • View Profile
I am trying to use the switch / case statements to detect which button has been pressed on the TinyScreen.
My code runs well on an Arduino UNO.
On TinyScreen switch and case seem to work, but the break statements are not recognised. This means that the sketch runs through the following statements too instead of branching out.
I wonder if there is a general problem with this procedure on TinyScreen, or if I am just making a mistake?
I attach the section of the code showing the problem.
Thanks   Klaus


  • Hero Member
  • *****
    • Posts: 106
    • View Profile
    • Dungeon Studios Prototyping


  • Jr. Member
  • **
    • Posts: 6
    • View Profile
Why are there single quotes around the numbers?
Is "mySwitches" a number or a string?
Perhaps the UNO compiler parses the single quotes differently than the Tiny compiler.


SMF spam blocked by CleanTalk