To write programs for the Arduino, we can use an integrated programming environment (IDE),that was developed by David Mellis and heavily influenced by Processing. This makes it particularly easy for us to get started - but there are a few differences when we are programming for a microcontroller. For Arduino we use a simplified variant of C / C ++. Since Arduino is based on Processing, the interface and syntax of both programs look very similar. The programming environment also looks very similar.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
x = 3+2; // x = 5 y = 2-1; // y = 1 z = 5*2; // z = 10 i = 10/2; // i = 5 r = 9%5; // r = 4 |
Comparison operators (,=,==,!=)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
if(100 != 120) // Condition { // Performed action } |
...