Blink an LED with Arduino in Tinkercad | How to blink an LED using Arduino

Опубликовано: 12 Октябрь 2024
на канале: Learn with Zoolnurain
123
7

This video is made for the beginner level of students who want to learn arduino. It explains that how can we connect the led with arduino and how can we control the led switch on/off frequency. TinkerCad link is attched below:
https://www.tinkercad.com/things/hIAs...

Code:

void setup() {
pinMode(1, OUTPUT); // sets the digital pin 1 as output
}

void loop() {
digitalWrite(1, HIGH); // sets the digital pin 1 on
delay(1000); // waits for a second
digitalWrite(1, LOW); // sets the digital pin 1 off
delay(1000); // waits for a second
}