Zino logo Zino

Zino PowerManager class Power Manager

The PowerManager class used to reduce the power consumption by the Arduino chip, please refer to this article to understand the Arduino power management before you use this class. There are two static methods available:


Modes

Sleep
  • Turning off ADC
  • Turning off Analog Comparator
  • Sleep with power-down mode
Deep Sleep
  • BOD disabled
  • BOD sleep enable
  • Turning off ADC
  • Turning off Analog Comparator
  • Sleep with power-down mode

Example

#include <Arduino.h>
#include <PowerManager.h>

void setup()
{
    PowerManager::sleep();
    // or
    PowerManager::deepSleep();
}

void loop()
{
    //
}