Skip to content

Instantly share code, notes, and snippets.

@DzikuVx
Created February 2, 2015 19:44
Show Gist options
  • Save DzikuVx/1f1b998cccf8883ec2fb to your computer and use it in GitHub Desktop.
Save DzikuVx/1f1b998cccf8883ec2fb to your computer and use it in GitHub Desktop.
Sleep mode
void enterSleep(void) {
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
sleep_enable();
sleep_mode();
sleep_disable();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment