0% found this document useful (0 votes)
16 views

Guia Do Arduino

Uploaded by

Michel Souza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Guia Do Arduino

Uploaded by

Michel Souza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Language Reference isAlpha() byte() Further Syntax

Arduino programming isAlphaNumeric() char() #define (define)


language can be divided in isAscii() float() #include (include)
three main parts: isControl() int() /* */ (block comment)
structure, values isDigit() long() // (single line comment)
(variables and constants), isGraph() word() ; (semicolon)
and functions. isHexadecimalDigit() {} (curly braces)
isLowerCase() Data Types
FUNCTIONS isPrintable() String() Arithmetic Operators
For controlling the isPunct() array % (remainder)
Arduino board and isSpace() bool * (multiplication)
performing computations. isUpperCase() boolean + (addition)
isWhitespace() byte - (subtraction)
Digital I/O char / (division)
digitalRead() Random Numbers double = (assignment operator)
digitalWrite() random() float
pinMode() randomSeed() int Comparison Operators
long != (not equal to)
Analog I/O Bits and Bytes short < (less than)
analogRead() bit() string <= (less than or equal to)
analogReference() bitClear() unsigned char == (equal to)
analogWrite() bitRead() unsigned int > (greater than)
bitSet() unsigned long >= (greater than or equal
Zero, Due & MKR Family bitWrite() void to)
analogReadResolution() highByte() word
analogWriteResolution() lowByte() Boolean Operators
Variable Scope & ! (logical not)
Advanced I/O External Interrupts Qualifiers && (logical and)
noTone() attachInterrupt() const || (logical or)
pulseIn() detachInterrupt() scope
pulseInLong() static Pointer Access Operators
shiftIn() Interrupts volatile & (reference operator)
shiftOut() interrupts() * (dereference operator)
tone() noInterrupts() Utilities
PROGMEM Bitwise Operators
Time Communication sizeof() & (bitwise and)
delay() Serial << (bitshift left)
delayMicroseconds() stream STRUCTURE >> (bitshift right)
micros() The elements of Arduino ^ (bitwise xor)
millis() USB (C++) code. | (bitwise or)
Keyboard ~ (bitwise not)
Math Mouse Sketch
abs() loop() Compound Operators
constrain() VARIABLES setup() &= (compound bitwise
map() Arduino data types and and)
max() constants. Control Structure *= (compound
min() break multiplication)
pow() Constants continue ++ (increment)
sq() Floating Point Constants do...while += (compound addition)
sqrt() Integer Constants else -- (decrement)
HIGH | LOW for -= (compound subtraction)
Trigonometry INPUT | OUTPUT | goto /= (compound division)
cos() INPUT_PULLUP if...else ^= (compound bitwise xor)
sin() LED_BUILTIN return |= (compound bitwise or)
tan() true | false switch...case
while
Characters Conversion

You might also like