kopia lustrzana https://github.com/lightaprs/LightAPRS-W-1.0
17 wiersze
343 B
C++
Executable File
17 wiersze
343 B
C++
Executable File
// **** 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.
|
|
}
|