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

Brief Desciption of Basic Functions

This document outlines some basic Arduino functions including digitalRead() and digitalWrite() for reading and writing digital pin values, pinMode() for setting pin modes, analogRead() and analogWrite() for reading analog voltages and writing PWM waves, and several serial functions like serial.begin(), serial.print(), and serial.println() for serial communication and printing data.

Uploaded by

Rakesh M B
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)
23 views

Brief Desciption of Basic Functions

This document outlines some basic Arduino functions including digitalRead() and digitalWrite() for reading and writing digital pin values, pinMode() for setting pin modes, analogRead() and analogWrite() for reading analog voltages and writing PWM waves, and several serial functions like serial.begin(), serial.print(), and serial.println() for serial communication and printing data.

Uploaded by

Rakesh M B
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/ 2

SOME BASIC FUNCTIONS

1) digitalRead()

Reads the value from a specified digital pin, either high or low
2) digitalWrite()

Write a high or low value to a digital pin.

3) pinMode()

set the pin as INPUT or OUTPUT

4) analogRead()
reads an analog voltage and converts to an integer value between 0 and 1023

5) analogWrite()
Writes an analog value (PWM wave) to a pin

6) analogReference()
Configures the reference voltage used for analog input
7) serial.begin()
Sets the data rate in bits per second (baud) for serial data transmission
8) serial.end()
Disables serial communication
9) serial.available()
Get the number of bytes (characters) available for reading from the serial port
10) serial.read()
Reads incoming serial data
11) serial.print()
Prints data to the serial port as human-readable ASCII text

12) serial.println()
Prints data to the serial port as human-readable ASCII text followed by a carriage
return character and a newline character

You might also like