esp-idf/examples/system/deep_sleep
2019-08-08 15:26:58 +10:00
..
main Merge branch 'master' into feature/esp32s2beta_update 2019-08-08 15:26:58 +10:00
CMakeLists.txt ci: support to build esp32s2beta simple examples 2019-07-08 09:16:06 +08: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 Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02: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).