open drain on D4
Why not have a pulldown switch that goes to the interrupt pin - if the sketch is running and the interrupt occurs low (use the internal pullup on D2), then go into sleep more - and if in sleep mode and the interrupt occurs, wake up.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16