3c583a7655
To increase the chances that the examples work out of the box, this change is raising the default deep sleep wakeup delay to 1ms. If GPIO15 is low at startup, ROM code takes less time to execute (because no logging is performed), so more time may be needed to allow flash chip to become ready. |
||
---|---|---|
.. | ||
main | ||
Makefile | ||
README.md | ||
sdkconfig.defaults |
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).