Show Menu
Cheatography

Arduino Cheat Sheet (DRAFT) by

Arduino Commands

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 consec­uti­vely.
 

Arithmetic Operators

=
Assignment Operator
+
Addition
-
Subtra­ction
*
Multip­lic­ation
/
Division
%
Modulo

Comparison Operators

==
Equal To
!=
Not Equal To
<
Less Than
>
Greater Than
<=
Less Than or Equal To
>=
Greater Than or Equal To

Boolean Operators

&&
And
||
Or
!
Not

Compound Operators

++
Increment
--
Decrement
+=
Compound Addition
-=
Compound Subtra­ction
*=
Compound Multip­lic­ation
/=
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