I’m trying out to use a toggle switch to wake up the Photon from sleep. The toggle switch uses an internal pullup.
I use the CHANGE interrupt because my program should react whatever state of the button (LOW to HIGH, HIGH to LOW).
I also attach an interrupt to the button, because I’d like to make my system go asleep on a press. However the pin seems to start floating (when not attached to ground), this should be prevented by the INPUT_PULLUP.
I’m just wondering if internal pullup doesn’t work well in combination with sleep or interrupts in general. The combination seems to give a problem at least. I have no problem adding a pull-down / up resistor externally, but I’m just wondering is this is normal behaviour.