Have a look at this blog. It may be possible using the ext1 interrupt?
Edit> Alternatively this one from Seeed Wiki.
I tested this and it works on an ESP32-C6.
Have a look at this blog. It may be possible using the ext1 interrupt?
Edit> Alternatively this one from Seeed Wiki.
I tested this and it works on an ESP32-C6.