I encountered an intriguing use of the switch / case statements and i'm wondering if it's a bug or if it's actually an alternative format? And which one is recommended?
case 'a': a=a-0.02**,**
Serial.print(a);
break;
But shouldn't it be the following, with a semicolon at the end, instead of a comma?
Another good reason to put separate expressions on separate lines.
Nothing ‘wrong’ here, but it makes the code more obvious, and readable.
Te comma operation here is irregular and subtle, but nonetheless ‘legal’.
Consider a = a-0.02, Serial.print(a);...remember the value returned by println() is the number bytes written.