TTGO_TWatch_Library icon indicating copy to clipboard operation
TTGO_TWatch_Library copied to clipboard

Please add example for wake up from light sleep from the touch screen on v1.

Open YordanYanakiev opened this issue 3 years ago • 2 comments

In "TTGO_TWatch_Library/examples/BasicUnit/WakeupFormTouchScreen/WakeupFormTouchScreen.ino" seems like it is more about v3, and not sufficiently clearly speaks about v1 problem. In order to avoid misunderstandings, and misusing :

  • Please add example which clearly shows how to use it on v1, and preferable with light sleep.

Thank You in advance.

YordanYanakiev avatar Oct 27 '21 11:10 YordanYanakiev

Someone ?

YordanYanakiev avatar Oct 31 '21 08:10 YordanYanakiev

Try replacing the call to displaySleep in loop() with the following code:

#if defined(LILYGO_WATCH_2020_V2)||defined(LILYGO_WATCH_2020_V3)
	ttgo->displaySleep();		// Set touchscreen sleep
#else
	ttgo->displayOff();		// Set display off, touch controller to monitor
#endif

That seems to work for me. I also found it helpful to uncomment the following line while experimenting:

# esp_sleep_enable_ext1_wakeup(GPIO_SEL_35,ESP_EXT1_WAKEUP_ALL_LOW);

mike-ady avatar Jan 08 '22 01:01 mike-ady