ThingPulse / esp8266-weather-station-color

ESP8266 Weather Station in Color using ILI9341 TFT 240x320 display
https://thingpulse.com/product/esp8266-wifi-color-display-kit-2-4/
MIT License
565 stars 221 forks source link

Sleep Mode broken a screen touch does not prevent sleep mode #127

Closed TiVoHomeUser closed 2 years ago

TiVoHomeUser commented 3 years ago

Expected behavior

A screen press should restart the sleep mode timer and abort activating sleep mode

Actual behavior

With SLEEP_INTERVAL_SECS set the device will go to sleep regardless of any screen touch

Test code

in settings.h Set SLEEP_INTERVAL_SECS to 15 The device will go to sleep in 15 seconds even if the screen is touched

Fix:

Additions:

Addition to settings.h a boolean for HARD_SLEEP.

Weather Station Color version

Master

Hardware

ThingPulse Weather Station Color kit purchased through Amazon April 2021

TiVoHomeUser commented 3 years ago

Put these proposed changes in a draft request "Time period"

128