1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-10-29 14:47:19 +01:00
Files
openscale/arduino_mcu/libraries/LowPower/Examples/powerDownWakePeriodic/powerDownWakePeriodic.ino

17 lines
343 B
C++

// **** INCLUDES *****
#include "LowPower.h"
void setup()
{
// No setup is required for this library
}
void loop()
{
// Enter power down state for 8 s with ADC and BOD module disabled
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
// Do something here
// Example: Read sensor, data logging, data transmission.
}