Accueil > Unclassified > Structure of an arduino program
Unclassified

Structure of an arduino program

An Arduino user program is a series of basic instructions in text form, line by line.
The card reads and then performs the instructions one after the other, in the order defined by the lines of code.

There are three consecutive phases

  1. The definition of constants and variables
  2. Configuration of inputs and outputs
    void setup()
  3. Programming interactions and behaviours
    void loop()

Once the last line has been executed, the card returns to the start of the third phase and resumes its reading and its execution of the successive instructions. And so on.

This loop runs thousands of times per second and animates the map.

See the image below:

It may interest you

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
18 + 4 =