https://raw.githubusercontent.com/chaep ... io_int.png
This one is I tested for door alarm.
martinayotte wrote:Unfortunately, the circuit in the above link provided by @mattrix is attached to CH_PD, not RESET.
Also, both CH_PD and RES can't be used as GPIO input, so firmware can read them to figure out any special reset mode.
Therefore, it would require a separate GPIO anyway, such the GPIO16 mentioned by @chaeplin ...
But the schematic provided by @chaeplin doesn't do the job either, since it is only disconnecting the RES switch when transistor base is low.