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:
#include <Arduino.h>
#include <PowerManager.h>
void setup()
{
PowerManager::sleep();
// or
PowerManager::deepSleep();
}
void loop()
{
//
}