MCU with ultra low energy gpio input
Use a second DIO to control the pull-up voltage. The output is normally low. Set it high momentarily, read the DIO input, set the output low.







simulate this circuit &ndash; Schematic created using CircuitLab