Question: Problem 9 . 1 : The following Arduino code is designed to turn on the onboard LED whenever a push button is pressed, but there
Problem : The following Arduino code is designed to turn on the onboard LED whenever a push button is pressed, but there are four errors that will prevent the code from working properly. On which lines are the four errors located? Select all that apply.
: int pushButton ;
: int ledPin ;
:
: void setup
: Serial.begin;
: pinModepushButton OUTPUT;
: pinModeledPin INPUT;
:
:
: void loop
: int buttonState digitalReadpushButton;
: digitalwriteledPinbuttonState;
: Serial.printlnbuttonState;
: delay;
:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
