Arduino IDE attachInterrupt

So when you drive the “button press” from software, then it works.

Just double checking, you previously connected the WAKE pin to GPIO pin 2 with a jumper, right? Otherwise the WAKE button won’t actually do anything.

If you don’t enable the interrupt, does the serial loop show the output of digitalRead(pin) properly when you press the WAKE button?

Ah, I finally got that I misunderstood what you meant by "for fun I hook the input of WAKE into pin 2…"
Since I did not connect them physically, pressing the button of course does not cause any effect. I thought there may be some software magics inside.

Anyway, I really appreciate for the help. :smiley:

Great, glad you got it working!

1 Like