Introduction to Arduino Basics Lec-02 UETFSD
Introduction to Arduino Basics Lec-02 UETFSD
Lecture 02
Introduction to Arduino Programming
Presented By
Engr. Abdullah Bilal
Department of Electrical, Electronics & Telecommunication
UET Lahore, Faisalabad Campus
OBJECTIVES
▪ Understand Arduino IDE and its features
▪ void loop() {
▪ // Code that runs repeatedly
▪}
▪ - setup(): Called once at the beginning
▪ - loop(): Repeats forever
BASIC FUNCTIONS
▪ pinMode(): Sets a pin as INPUT or OUTPUT
▪ /* Multi-line comment */
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
NEXT CLASS PREVIEW
▪ Getting started with Tinkercad.
▪ Write and upload your first program (Blink).
▪ Learn code structure: setup() and loop().