8. LED Blink

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 
 

 

 

 

Code

const int ledPin =6; // LED IS CONNECTED TO PIN 6


void setup() {
  // put your main code here, to run repeatedly:
pinMode(ledPin, OUTPUT); // SET THE LED PIN AS AN OUTPUT
}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(ledPin, HIGH); // LED WILL TURN ON
delay(400); 
digitalWrite(ledPin, LOW); // LED WILL TURN OFF
delay(800);
}


 

 

 

Output

Photo of Output

Add a photo of your hardware showing the output.

 

Was this helpful?
Upvote
Downvote