Hi All,
I've been trying to find a simple circuit to generate a pulse on the state change of a switch. High>Low or Low>High. I'm using an ESP8266EX and in deep sleep mode (which i need to get anything resembling good battery life) the only way to wake it is to reset it. Cool, no worries. The ESP8266 will be used to monitor and report on the state of a reed switch, and i only really need to know if the state has changed in order to check in. Simple enough.. However I've been ripping my hair out trying to find a really simple and elegant way to generate a reset pulse to wake up the ESP8266 when the reed switch state changes.

I could use a 74HC74 to generate the pulse on a low to high, but not on a high to low transition. I thought I could use an inverter fed into the same input with an OR gate, but that didn't work as intended.
Any ideas or suggestions would be appreciated.

I'm working on a greenfield project so i'm open to any and all ideas.
Cheers