subject

Write a program that switches on LED1 by pressing and holding S1, and off by releasing S1. Similarly, LED2 should switch on by pressing and holding S2, and off by releasing S2, i. e. they are ON only if the buttons are pressed. LED2 should change color each time S2 is pressed, i. e. if LED2 is red when S2 is pressed first, it should be, for example, green the next time S2 is pressed and blue for the time after that. This sequence may repeat itself.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
In which phase does software coding and testing happen in the spiral model? the spiral model does not have a separate testing phase. both, software coding and testing occurs during the phase.
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
You know the right answer?
Write a program that switches on LED1 by pressing and holding S1, and off by releasing S1. Similarly...
Questions
question
Spanish, 03.08.2019 05:30
Questions on the website: 13722361