ESP32 Wake on Touch Input

Code tips and tricks for beginners
Post Reply
SteanX
Posts: 39
Joined: Sat Jun 19, 2021 10:33 pm
Has thanked: 17 times
Been thanked: 6 times

ESP32 Wake on Touch Input

Post by SteanX »

Hi everyone,

Apologies if this has been asked before - I did search before posting, but maybe my search skills are not all that great :-)
I was wondering whether Annex supports waking from Deep Sleep on a Touch input?

There is a PIN.TOUCH(pin) function that will return a sortof analog value and there is a SLEEP value [, pin, level] which will enter deep sleep for value seconds or wake when pin pin is at level level. Given that the PIN.TOUCH function returns lower values when touched, does this mean that issuing something like SLEEP 3600,13,0 will wake from sleep when pin 13 is touched or when 1 hour has passed?

Thanks in advance.
User avatar
cicciocb
Site Admin
Posts: 2059
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1358 times
Contact:

Re: ESP32 Wake on Touch Input

Post by cicciocb »

No, the wakeup is only supported by pin level but you can request it in the "Feature Request"
SteanX
Posts: 39
Joined: Sat Jun 19, 2021 10:33 pm
Has thanked: 17 times
Been thanked: 6 times

Re: ESP32 Wake on Touch Input

Post by SteanX »

Thanks Francesco, will do so
Post Reply