PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

powerDownWakePeriodic.pde 343B

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. }