Question: What is wrong with the following code: ( Explain your choice in calculation sheet ) / * Turns on an LED on for one second,

What is wrong with the following code:
( Explain your choice in calculation sheet)
/*Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain.*/
int led =13;
void setup(){
pinMode(led, INPUT);
}
void loop(){
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!