Referencia idiomática
El lenguaje de programación Arduino se puede dividir en tres partes principales: estructura, valores (variables y constantes) y funciones.
FUNCIONES
Para controlar la placa Arduino y realizar cálculos.VARIABLES
Arduino tipos de datos y constantes.Constants
Floating Point ConstantsInteger Constants
HIGH | LOW
INPUT | OUTPUT | INPUT_PULLUP
LED_BUILTIN
true | false
ESTRUCTURA
Los elementos del código Arduino (C ++).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)
Bitwise Operators
& (bitwise and)<< (bitshift left)
>> (bitshift right)
^ (bitwise xor)
| (bitwise or)
~ (bitwise not)
Compound Operators
&= (compound bitwise and)*= (compound multiplication)
++ (increment)
+= (compound addition)
-- (decrement)
-= (compound subtraction)
/= (compound division)
^= (compound bitwise xor)
|= (compound bitwise or)