PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

powerDownWakePeriodic.pde 343B

3 years ago
12345678910111213141516
  1. // **** INCLUDES *****
  2. #include "LowPower.h"
  3. void setup()
  4. {
  5. // No setup is required for this library
  6. }
  7. void loop()
  8. {
  9. // Enter power down state for 8 s with ADC and BOD module disabled
  10. LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
  11. // Do something here
  12. // Example: Read sensor, data logging, data transmission.
  13. }