Delivery throughout Europe

Ordered before 16:00 = Shipped today

Fast delivery with DHL

XNUMX days return *


Country

In which language do you program an Arduino?

The programming language that Arduino is very similar to C ++, a common language in the computer world.
The code you learn to write for Arduino will be very similar to the code you write in another computer language. All basic concepts remain the same, it is really just a matter of learning to work with a different dialect.

When writing code for microcontrollers, performance is very important. That is why you must have strong and fast programming languages. C and C ++ are among the most powerful languages ​​you can find.
These are quite fast and stable, so they are a good choice for microcontrollers.

The compiler used to convert code into object files is avr-g ++.
Then a program called avrdude is used to upload the program to the Arduino microcontroller.

The Arduino programming language can be divided into three main parts: functions, values ​​(variables and constants) and structure.

The writing of the Arduino codes is done in English. For this reason, we will name the sections below in English.

    Functions

    Functions are used to control the Arduino board and to perform calculations.
    The functions are indicated in orange in the code.

    Variables

    Variables are Arduino data types and constants.
    The variables are indicated in blue in the code.

     

    Structure

    The structure are elements of the Arduino (C ++) code
    The structure is indicated in green in the code.

     

    Pointer Access Operators

    & (Reference Operator) 
    * (deference operator) 

    Further syntax

    #define (Define) 
    #include (include) 
    / * * / (block comment) 
    // (single line comment) 
    ; (Semicolon) 
    {} (Curly Braces) 

    Arithmetic Operators

    % (remain) 
    * (Multiplication) 
    + (additional) 
    - (Subtraction) 
    / (Division) 
    = (Assignment Operator) 

    Bitwise Operators

    & (Bitwise and) 
    << (bit shift left) 
    >> (bit shift right) 
    ^ (Bitwise Xor) 
    | (bit wise or) 
    ~ (Bitwise Not) 

    Comparon Operators

    != (Not Equal to) 
    < (Less Than) 
    <= (less than or equal to) 
    == (Equal to) 
    > (Greater Than) 
    >= (greater than or equal to) 

    Boolean operators

    ! (Logical Not) 
    && (Logical and) 
    || (Logical OR) 

    Compound Operators

    %= (Compound Reminder) 
    &= (Compound bitwise and) 
    *= (compound multiplication) 
    ++ (increment) 
    += (Compound Addition) 
     (decrement) 
    -= (Compound Subtraction) 
    /= (Compound Division) 
    ^= (Compound Bitwise Xor) 
    |= (Compound BitWise OR) 

    The rating of www.elektronicavoorjou.nl at WebwinkelKeur Reviews is 9.3/10 based on 5005 reviews.