Question: I need a flowchart for this I'WoButtons Initially the LED is OFF // button2 on the right, turns the LED ON // and it will

 I need a flowchart for this I'WoButtons Initially the LED isI need a flowchart for this

I'WoButtons Initially the LED is "OFF" // button2 on the right, turns the LED "ON" // and it will stay on until you press button to turn it "OFF // buttonl on the left turns the lED "OFF" // From a frontal view, buttonl is on the left and // button2 is on the right int ledPin = 13; int input Pinl = 3; int inputPin2 = 2; // Choose the pin for the LED // button! // button2 void setup() { pinMode(ledPin, OUTPUT); pinMode (inputpini, INPUT); pinMode (inputPin2, INPUT); // declare LED as output // make button1 an input // make button2 an input void loop() { if (digitalRead (inputPinl) == LOW) { digitalWrite(ledPin, LOW); // turn LED "OFF" else if (digitalRead(input Pin2) == LOW){ digitalWrite(ledPin, HIGH); // TURN led "ON

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 Databases Questions!