Friday, 2 September 2016

How to make physic button's push action to just send one clicking event? for Pi and Arduino ...




   buttonState = digitalRead(buttonPin);
   if (buttonState == LOW && previous_ buttonState == HIGH) {
     /// do your stuff here....
  }



No comments:

Post a comment