Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagecpp
float y = 20.4;
Serial.println(y); // this will give you 20.4

A two Two equals is a comparator

Code Block
languagecpp
if (test == true) {
  Serial.println("true"); 
}

...