I want my device(touch tft and motor controllers) to be turned on and off long press.
Is this item(https://www.pololu.com/product/2808) will work in next modes:
- MCU output pin connected to OFF pin of the power switch
- button connected to A pin of the power switch and to the input pin of the MCU and shorts them to ground when pressed
When I press and hold button the MCU is turns on and starts counting the length of button press when some value is reached the device is powering on the TFT and other peripherals if button was released before the MCU is powering off the system by making pulse to OFF pin.
When I press the button when the device is powered on for some time the MCU will make pulse on OFF pin.
Is the pressed and held button in turn off mode will keep the MOSFET open so the power switch will ignore the pulse on the OFF pin?