This is a draft cheat sheet. It is a work in progress and is not finished yet.
Setup
void setup() |
Function called when a sketch starts. Runs once on powerup / reset. |
void loop() |
Function loops consecutively. |
|
|
Arithmetic Operators
= |
Assignment Operator |
+ |
Addition |
- |
Subtraction |
* |
Multiplication |
/ |
Division |
% |
Modulo |
Comparison Operators
== |
Equal To |
!= |
Not Equal To |
< |
Less Than |
> |
Greater Than |
<= |
Less Than or Equal To |
>= |
Greater Than or Equal To |
Compound Operators
++ |
Increment |
-- |
Decrement |
+= |
Compound Addition |
-= |
Compound Subtraction |
*= |
Compound Multiplication |
/= |
Compound Division |
%= |
Compound Modulo |
&= |
Compound Bitwise And |
!= |
Compound Bitwise Or |
|
|
Constants
HIGH |
Voltage greater than 3V (5V board) or 2V (3.3V board) |
LOW |
Voltage less than 1.5V (5V board) or 1V (3.3V board) |
INPUT |
INPUT_PULLUP |
OUTPUT |
|