Language Reference
Arduino programming language can be divided in three main parts: structure, values (variables and constants), and functions.
functions
For controlling the Arduino board and performing computations.
variables
Arduino data types and constants.
Constants
Floating Point ConstantsInteger Constants
HIGH | LOW
INPUT | OUTPUT | INPUT_PULLUP
LED_BUILTIN
true | false
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)