Arduino Essential Training
Arduino Essential Training
pinMode(pin, INPUT/OUTPUT)
Eg
digitalWrite(9,HIGH)
Syntax
delay(ms)
Pin 3, 5, 6, 9, 10, 11
Eg
analogWrite(9, 125)
Time: 10 mins
Eg
analogRead(A0)
Time: 10 mins
A0
EEE F411, IoT course, Dr. Vinay Chamola, BITS-Pilani 90
Map
Syntax:
map(value, fromLow, fromHigh, toLow, toHigh)
Eg
10KΩ
● Connect the circuit shown on
the left
● Write a sketch from bare
minimum to turn on the LED
Time: 15mins when the button is pressed