Skip to content

Instantly share code, notes, and snippets.

@zookzook
Created January 25, 2013 14:03
Show Gist options
  • Select an option

  • Save zookzook/4634677 to your computer and use it in GitHub Desktop.

Select an option

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 …
void setup() {
MCUSR = 0;
wdt_disable();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment