Q:

Basic LED Blinking with Arduino UNO

0

This is a basic programme of led blinking. A "Hello World!" programme of IoT.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

void setup() {
  
  pinMode(2, OUTPUT); //declare pin to perform action
}

void loop() {
  
  digitalWrite(2, HIGH); //led ON
  delay(1000); //delay of 1 second
  digitalWrite(2, LOW);//led OFF
  delay(1000);

}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now