Created
March 30, 2016 14:00
-
-
Save smching/77ca53310e8f3c5d4a8219ad32bd1690 to your computer and use it in GitHub Desktop.
Arduino电子密码锁
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boolean isTimeout() { | |
runEventAnyTime(); | |
if (millis() >= previousMillis + KEYBOARD_EVENT_TIMEOUT *1000){ //convert KEYBOARD_EVENT_TIMEOUT in milli second to second | |
playTimeOutTone(); | |
return true; | |
} else return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment