I’m writing some code for a scoreboard controller and the entire code is basically if (state == ‘x’) then do ‘this’. My problem is though, I am using numbers for the state ex: if (state == ‘1’). Numbers 1-9 work fine but as soon as I use ‘10’ it stops working. Can the arduino only use numbers 1-9? I have 16 statements to do and I’ve only gotten 9 to work. What do I need to do? I included the code in the attachments. I know its not very efficient but I’m very new to this.
Scoreboard.ino (3.54 KB)