OVMS3-idf/examples/system/deep_sleep
2018-08-17 14:14:10 +10:00
..
main bugfix(touch pad): modify deep-sleep example and add note for sleep api. 2018-06-20 10:57:26 +08:00
CMakeLists.txt cmake: Add CMakeLists.txt files for all examples 2018-04-30 09:59:20 +10:00
Makefile add deep sleep wake up example 2017-02-22 18:40:31 +08:00
README.md add deep sleep wake up example 2017-02-22 18:40:31 +08:00
sdkconfig.defaults sdkconfig: set CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 by default 2017-05-25 10:51:39 +08:00

Example: deep sleep

This example illustrates usage of deep sleep mode and various wakeup sources.

The following wake up sources are configured:

  • Timer: wake up the chip in 20 seconds
  • EXT1: wake up the chip if any of the two buttons are pressed (GPIO25, GPIO26)
  • Touch: wake up the chip if any of the touch pads are pressed (GPIO32, GPIO33)
  • ULP: wake up when the chip temperature changes by more than ~5 degrees Celsius (this value hasn't been characterized exactly yet).