...
Use of TX and RX pin while uploading the code
Programming Errors
A missing semicolon at the end of
...
a statement
In c++ you must have a semicolon ( ; ) at the end of every statement! Fortunately, the compiler will spot this one straight away. Another common typo is using a colon ( : ) instead of a semicolon ( ; ).
An uneven number of opening and closing brackets, or wrongly placed closing brackets.
This is a
Equals and Comparison
‘=' is not the same as '==’.
...
Code Block | ||
---|---|---|
| ||
float y = 20.4; Serial.println(y); // this will give you 20.4 |
A two Two equals is a comparator
Code Block | ||
---|---|---|
| ||
if (test == true) { Serial.println("true"); } |
...