Gratis verzending vanaf €74,95 NL (€99,95 BE/DE)

Voor 16:00 besteld = morgen in huis

Express voor 13:00 besteld = vanavond in huis*

14 dagen gratis terugsturen*


Land

In what language do you program an Arduino?

The programming language Arduino uses 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’s actually just a matter of learning to work with a different dialect.

When writing code for microcontrollers, performance is very important. That’s why you need strong and fast programming languages. C and C++ are among the most powerful languages you can find.
These are fairly fast and stable, and are therefore a good choice for microcontrollers.

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

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

Writing the Arduino codes happens in English. All functions are in English

 

Functions

Functions are used to control the Arduino board and perform calculations.
The functions are indicated in the 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 the green in the code.

 

Pointer Access Operators

& (reference operator)
* (dereference operator)

Further Syntax

#define (define)
#include (include)
/* */ (block comment)
// (single line comment)
; (semicolon)
{} (curly braces)

Arithmetic Operators

% (remainder)
* (multiplication)
+ (addition)
(subtraction)
/ (division)
= (assignment operator)

Bitwise Operators

& bitwise and
<< (bitshift left)
>> (bitshift right)
^ (bitwise xor)
| (bitwise or)
~ (bitwise not)

Comparison 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 remainder)
&= (compound bitwise and)
*= (compound multiplier)
++ (increment)
+= (compound addition)
(decrement)
-= (compound subtraction)
/= (compound division)
^= (compound bitwise xor)
|= (compound bitwise or)

De waardering van www.elektronicavoorjou.nl bij WebwinkelKeur Reviews is 9.3/10 gebaseerd op 5008 reviews.