Vous êtes sur la page 1sur 4

Structure Variables Functions

setup() Constants Digital I/O


loop()
HIGH | LOW pinMode()
Control Structures INPUT | OUTPUT | digitalWrite()
INPUT_PULLUP digitalRead()
if
LED_BUILTIN
if...else Analog I/O
true | false
for
integer constants
analogReference()
switch case
floating point constants
analogRead()
while
analogWrite() - PWM
do... while Data Types
break
Due & Zero only
void
continue
boolean
return analogReadResolution()
char
goto analogWriteResolution()
unsigned char
Further Syntax byte Advanced I/O
int
; (semicolon) tone()
unsigned int
{} (curly braces) noTone()
word
// (single line shiftOut()
long
comment) shiftIn()
unsigned long
/* */ (multi-line pulseIn()
short
comment)
float
#define Time
double
#include
string - char array millis()
String - object micros()
Arithmetic Operators
array delay()
= (assignment delayMicroseconds()
Conversion
operator)
+ (addition) Math
char()
- (subtraction)
byte() min()
* (multiplication)
int() max()
/ (division)
word()
% (modulo) long() abs()
float() constrain()
Comparison Operators
map()
Variable Scope & Qualifiers
pow()
== (equal to)
sqrt()
!= (not equal to) variable scope
< (less than) static
Trigonometry
> (greater than) volatile
<= (less than or equal const sin()
to) cos()
Utilities
>= (greater than or tan()
equal to)
sizeof()
Characters
PROGMEM
Boolean Operators
isAlphaNumeric()
&& (and) isAlpha()
|| (or) isAscii()
! (not) isWhitespace()
isControl()
Pointer Access Operators
isDigit()
isGraph()
* dereference operator
isLowerCase()
& reference operator
isPrintable()

Bitwise Operators isPunct()


isSpace()
& (bitwise and) isUpperCase()
| (bitwise or) isHexadecimalDigit()
^ (bitwise xor)
~ (bitwise not) Random Numbers

<< (bitshift left)


randomSeed()
>> (bitshift right)
random()

Compound Operators
Bits and Bytes

++ (increment)
lowByte()
-- (decrement)
highByte()
bitRead()
+= (compound bitWrite()
addition) bitSet()
-= (compound bitClear()
subtraction) bit()
*= (compound
External Interrupts
multiplication)
/= (compound
attachInterrupt()
division)
detachInterrupt()
%= (compound
modulo) Interrupts
&= (compound bitwise
and) interrupts()

|= (compound bitwise noInterrupts()

or)
Communication

Serial
Stream

USB (32u4 based boards and


Due/Zero only)

Keyboard
Mouse

Vous aimerez peut-être aussi