Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boolean StartButtonPressed(){
- if (digitalRead(START_BTN) != HIGH || buttonsBlock){
- startButtonState = 0;
- return false;
- }
- if (millis() - previousMillis > 50){
- previousMillis = millis();
- startButtonState++;
- }
- if(startButtonState >=3){
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement