Question: What is wrong with the following code: ( Explain your choice in calculation sheet ) / / int led = 1 3 ; void setup

What is wrong with the following code:
(Explain your choice in calculation sheet)
//
int led =13;
void setup(){
pinMode(led, INPUT);
}
void loop(){
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
delay (1000) must be changed to delay(1)
The led PIN should be configured as OUTPUT
void setup() should be swapped with void loop()
delay(1000) must be changed to delay(100)
What is wrong with the following code: ( Explain

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!