alec_t, yeah, let me explain then. The engine is for a RC car and I have developed a remote activated killswitch some years ago which I now wish to update with additional features. The user should be able to adjust some settings, but I don't want to put a button on the PCB for several reasons I won't get into now. So I would like to use the stop button on the engine instead so the user could press the button during powerup and then activate setup mode ect.
That's why I need some way to measure whether the button is pressed or not even though the engine is not running at all.