Versions Compared

Key

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

German Version

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
languagejava
titleBeispiel Arithmetische Operatoren
collapsetrue
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
languagejava
titleBeispiel Vergleichende Operatoren
collapsetrue
if(100 != 120) // Condition
{
  // Performed action
}

...