Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Digital I/O: Arduino Function Names

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

Arduino function names:

Digital I/O

digitalRead()
digitalwrite()
pinMode()

Analog I/O

analogRead()
analogReference()
analogWrite()

Zero, Due & MKR Family

analogReadResolution()
analogWriteResolution()

Advanced I/O

noTone()
pulseIn()
pulseInLong()
shiftIn()
shiftOut()
tone()

Time

delay()
delayMicroseconds()
micros()
millis()

Math

abs()
constrain()
map()
max()
min()
pow()
sq()
sqrt()
Trigonometry

cos()
sin()
tan()

Characters

isAlpha()
isAlphaNumeric()
isAscii()
isControl()
isDigit()
isGraph()
isHexadecimalDigit()
isLowerCase()
isPrintable()
isPunct()
isSpace()
isUpperCase()
isWhitespace()

Random Numbers

random()
randomSeed()

Bits and Bytes

bit()
bitClear()
bitRead()
bitSet()
bitWrite()
highByte()
lowByte()

External Interrupts

attachInterrupt()
detachInterrupt()

Interrupts
interrupts()
noInterrupts()

Communication

Serial
Stream

USB

Keyboard
Mouse

Description:
(1) DigitalRead():
Reads the value from a specified digital pin, either HIGH or LOW.
(2) DigitalWrite():
Write a HIGH or a LOW value to a digital pin.If the pin has been configured as
an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V
(or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.
(3) PinMode():
Configures the specified pin to behave either as an input or an output. Set
the Digital Pins page for details on the functionality of the pins.As of Arduino
1.0.1, it is possible to enable the internal pullup resistors with the mode
INPUT_PULLUP. Additionally, the INPUT mode explicitly disables the internal
pullups.

(4)AnalogRead():

Reads the value from the specified analog pin. Arduino boards contain a
multichannel, 10-bit analog to digital converter. This means that it will map input
voltages between 0 and the operating voltage(5V or 3.3V) into integer values
between 0 and 1023. On an Arduino UNO, for example, this yields a resolution
between readings of: 5 volts / 1024 units or, 0.0049 volts (4.9 mV) per unit. See
the table below for the usable pins, operating voltage and maximum resolution for
some Arduino boards.
(5)Analog refrence():
Configures the reference voltage used for analog input (i.e. the value used as the
top of the input range).

You might also like