Question
Problem 3 - Save EnergySave the World As New Years Day quickly approaches, you decide to be more aware of your energy usage. The first
Problem 3 - Save EnergySave the World
-
As New Years Day quickly approaches, you decide to be more aware of your energy usage. The first area you focus on is your light usage. You want to know how long an LED has been on. If it has been on for longer than 20 seconds, it will automatically turn off.
-
Implement this system using a light switch button and LED. When you press the button once, the LED turns on. The LED will either turn off when the button is pressed again or turn off automatically after 20 seconds. When the LED turns off, you want to print the following message to the Serial Monitor: The LED was on for [number of seconds LED was on] seconds.
-
Can you send a screenshot of the Tinkercad circuit so that I understand the code. Thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started