- This topic has 1 reply, 2 voices, and was last updated 13 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › taking input from tactile switches
What condition must be used (while of if) when the input is taken from tactlie switches?
It depends upon how you want to use the switch and your programming logic.
If you are using “if ” condition uc rill check the state of the switch only once. But in case of while it will execute the instruction till the condition in while is true.