News

How to use switch...case on strings in Arduino IDE. If you have just a few ascii commands to handle, received by Serial, it's okay to use "If...Else If". But if you have many commands, with "If..Else ...
How to use switch...case on strings in Arduino IDE If you have just a few ascii commands to handle, received by Serial, it's okay to use "If...Else If". But if you have many commands, with "If..Else ...
With Arduino C, small if/then state-machines generally come out smaller a switch/case version. Which ever is chosen, the result is pretty efficient, and the switch/case penalty is rarely greater than ...