I’m creating a board that have a mosfet that turns con/off whatever it’s connected using pwm (a button and a slider). Also, it’s going to have a bmp280 to display temperature and humidity.
What I want to do it’s keep the esp8266 in sleep mode if the pwm output is off and just wake up to check temperature and humidity, to save power.
It’s possible to keep it responsive ( with added latency ) using light sleep, i wrote a relatively in-depth post about it some time ago: ESP8266 Light Sleep