Single pushbutton for Power On/Off and digital input on Teensy 4.0

Status
Not open for further replies.

pharaoh

New member
Hello. I'm working on a project powered by Teensy 4.0, where I currently use two pushbuttons: one for digital input using one of the digital IO pins, and another for powering the Teensy On/Off using the "On/Off" pin.
To my understanding, the digital IO pins and the On/Off pin need to be wired/powered in different ways to be used with a pushbutton.

Because of certain constraints, I need to condense those two buttons into a single pushbutton, where a momentary press acts as a digital input (to trigger certain project functions), and a long press acts to power the Teensy on/off.
What's the easiest way for me to achieve this on the Teensy 4.0? Thanks in advance for the help.
 
Status
Not open for further replies.
Back
Top