C++
Arduino programming language can be divided in three main parts: functions, values (variables and constants), and structure.
FUNCTIONS
For controlling the Arduino board and performing computations.
VARIABLES
Arduino data types and constants.
Constants
HIGH | LOWINPUT | OUTPUT | INPUT_PULLUP
LED_BUILTIN
true | false
Floating Point Constants
Integer Constants
STRUCTURE
The elements of Arduino (C++) code.
Further Syntax
#define (define)#include (include)
/* */ (block comment)
// (single line comment)
; (semicolon)
{} (curly braces)
Arithmetic Operators
% (remainder)* (multiplication)
+ (addition)
- (subtraction)
/ (division)
= (assignment operator)
Comparison Operators
!= (not equal to)< (less than)
<= (less than or equal to)
== (equal to)
> (greater than)
>= (greater than or equal to)
0 Comments