Home > other >  My single-chip key usage insight, shaking, executed only once
My single-chip key usage insight, shaking, executed only once

Time:01-04

If (key=0)//whether button press

{
delay(10);//shaking,
*/fill you casually to perform/*
While (key=0)//if have been pressing the empty

{

}


}




General is to determine whether a button press, then according to the next, no next time holding (into a while loop, the next is to press to perform again

CodePudding user response:

This method has 20 years ago with engineers, so Microsoft 30 years ago has shot this kind of this programming code