Circuit coder double5/7/2023 First, I will hint by saying that including delays in appropriate spots - and making sure that you hold down the button long enough to be detected while an LED is blinking, will allow things to work reasonably well without too much extra code. With that, you are not being provided with starter code as this is intended for you to demonstrate your ability to solve a problem from scratch. Bob by doing the following steps:Ĭomments on #7: This programming assignment this week is intended to require sound problem solving, circuit building, and programming. This will be graded for good circuit design and good coding! Share your TinkerCad circuit with Dr. And, finally, if an LED is blinking and the opposite button is pressed, the blinking LED should turn off and the other LED should turn solidly on. If an LED is blinking and the button for the same color LED is pressed again it should go back to being solidly on. if the red LED is on and the button for the red LED is pressed), that LED should blink at a rate of 1Hz. ![]() Now, if the button for the LED that is already on is pressed (i.e. The opposite should happen if the blue LED is already on and the button for the red LED is pressed. If the red LED is on and the button for the blue LED is pressed, the red LED should turn off and the blue LED should turn on. From the start, pressing button 1 should turn on LEDI (make it red) and pressing button 2 should turn on LED2 (make it blue). ![]() Transcribed image text: PROGRAMMING/CIRCUIT CONTENT 7) (50 points) Build a circuit on TinkerCad that simulates the following: The circuit should have two buttons and two LEDS.
0 Comments
Leave a Reply. |