Sleepy powerDown()
Take the ATmega into the deepest possible power down state. Getting out of this state requires setting up the watchdog beforehand, or making sure that suitable interrupts will occur once powered down.
Disables the Brown Out Detector (BOD), the A/D converter (ADC), and other peripheral functions such as TWI, SPI, and UART before sleeping, and restores their previous state when back up.
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
Sleepy::powerDown(byte prrOff =0xFF);
Parameters
prrOff
The power register save values to use during power down, the default turns all peripherals completely off.