-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The function of wakeUpPin? #108
Comments
Interrupts interrupt whatever loop() is doing. You can have a long list of lines in a function, but if your interrupt is triggered the processor will jump to whatever function is linked to it ( in this example wakeUp() ) Arduino actually does this for millis(). No matter what else your own loop code is doing, it will very quickly stop at exactly a certain time, update the millis() value a little then return to where it left your own code. |
Thanks for your answer. I searched online and found that the code in line22 of the I find the definition: Does it means that for Arduino (AVR versions), certain pins have certain interrupt numbers? So if we use |
Hi, I am wondering that in "powerDownWakeExternalInterrupt.ino", what is the function of "wakeUpPin = 2" ? Since the variable wakeUpPin does not be invoked anywhere during the loop(). Does it mean that any voltage changes on any pin can wake up the system?
The text was updated successfully, but these errors were encountered: