Ep-1.1 21mca2001
Ep-1.1 21mca2001
Ep-1.1 21mca2001
Design first sketch to interface Led with Arduino Uno and to design different
patterns.
• Hardware Required:
• LED Lights
• Resistor
• Arduino UNO3
• Breadboard
• Theory:
• Arduino Code:
void setup()
{
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
pinMode(8, OUTPUT);
pinMode(7, OUTPUT);
pinMode(4, OUTPUT);
}
void blinkit(int led){ //Function for LED blinking
digitalWrite(led, HIGH);
delay(100);
digitalWrite(led, LOW);
}
void loop()
{
blinkit(13);
blinkit(12);
blinkit(8);
blinkit(7);
blinkit(4);
}