Created
January 25, 2013 14:03
-
-
Save zookzook/4634677 to your computer and use it in GitHub Desktop.
Arduino sleep without watch dog. The most example for putting the Arduino into sleep mode use the watch dog. But if you have an external interrupt pin you don't really need the watch dog. The aim is to save power, therefore there is no need to get awake by the watch dog and then go to sleep again. The trick is to clear the MCUSR register before …
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
| void setup() { | |
| MCUSR = 0; | |
| wdt_disable(); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment