$ 0 0 Normally, a long-press / short-press thing is done with an MCU. But if you don't want to program, you could look at this answer.