Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Try to do this but it don\'t work on arduino so what is missing in this or there

ID: 3826416 • Letter: T

Question

Try to do this but it don't work on arduino so what is missing in this or there is other way I can do it???? o AT&T; 11:56 AM Need answer in Arduino code. Using a led pin 9 and push button pin 2. Write a code that will allow me turn on led with one press on push button and led stays on even after you let go off your finger and turns off when button is pressed again. Also include, if led stays on for 5 minutes then it should turns off itself without pressing button again. Try to use millio and debounce 0. do not use serial. print and delay0

Explanation / Answer

The logic seems to be fine . But u have missed semi colon in loop.

Try this :

void loop() {

State Button = Digital Read (Pin Button);

------------------

-----------------

}

Add this semi colon in your code and try again.

Best of Luck.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote