Common Mistakes
Jump to navigation
Jump to search
Some Common Mistakes Made In Arduino Programming
- Confusion in changing variable values Vs. comparing variables.
- To set one variable equal to a number use "=" for example to set the variable Speed to 100 you would do "Speed = 100".
- For a logic statement however you use "==" for example to see if the variable Speed equaled 100, you would use "Speed == 100".
- Other logic statements also use doubles for example, to see if Speed is greater than or equal to 100 you would use "Speed >= 100".