Arduino Reference

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

cos() Communication

Digital I/O sin() Serial

digitalRead() tan() Stream

digitalWrite() Characters USB

pinMode() isAlpha() Keyboard

Analog I/O isAlphaNumeric() Mouse

analogRead() isAscii() variables

analogReference() isControl()

analogWrite() isDigit() Arduino data types and


constants.
Zero, Due & MKR Family isGraph()
Constants
analogReadResolution() isHexadecimalDigit()
HIGH | LOW
analogWriteResolution() isLowerCase()
INPUT | OUTPUT |
Advanced I/O isPrintable() INPUT_PULLUP
noTone() isPunct() LED_BUILTIN
pulseIn() isSpace() true | false
pulseInLong() isUpperCase() Floating Point Constants
shiftIn() isWhitespace() Integer Constants
shiftOut() Random Numbers Conversion
tone() random() (unsigned int)
Time randomSeed() (unsigned long)
delay() Bits and Bytes byte()
delayMicroseconds() bit() char()
micros() bitClear() float()
millis() bitRead() int()
Math bitSet() long()
abs() bitWrite() word()
constrain() highByte() Data Types
map() lowByte() array
max() External Interrupts bool
min() attachInterrupt() boolean
pow() detachInterrupt() byte
sq() Interrupts char
sqrt() interrupts() double
Trigonometry noInterrupts() float
int switch...case ^ (bitwise xor)

long while | (bitwise or)

short Further Syntax ~ (bitwise not)

size_t #define (define) Compound Operators

string #include (include) %= (compound remainder)

String() /* */ (block comment) &= (compound bitwise and)

unsigned char // (single line comment) *= (compound multiplication)

unsigned int ; (semicolon) ++ (increment)

unsigned long {} (curly braces) += (compound addition)

void Arithmetic Operators -- (decrement)

word % (remainder) -= (compound subtraction)

Variable Scope & Qualifiers * (multiplication) /= (compound division)

const + (addition) ^= (compound bitwise xor)

scope - (subtraction) |= (compound bitwise or)

static / (division)

volatile = (assignment operator)

Utilities Comparison Operators

PROGMEM != (not equal to)

sizeof() < (less than)

structure <= (less than or equal to)

== (equal to)

The elements of Arduino (C+ > (greater than)


+) code.
>= (greater than or equal to)
Sketch
Boolean Operators
loop()
! (logical not)
setup()
&& (logical and)
Control Structure
|| (logical or)
break
Pointer Access Operators
continue
& (reference operator)
do...while
* (dereference operator)
else
Bitwise Operators
for
& (bitwise and)
goto
<< (bitshift left)
if
>> (bitshift right)
return

You might also like