There is an example of a programme that differentiates between long and short push-button pushes on the Arduino.cc website, but I was not taken it. However their was an example I did like the look of, ...
The code will take input from pin 8 as the clock signal and pin 9 as the push button. It will transmit data through pins A4 and A5 into and OLED which will spell out what you are putting in in morse ...
An Arduino Nano-based pulse oximeter and heart rate monitor using the MAX30102 sensor and a 0.96” OLED display. Displays SpO₂ and BPM in real-time, with push-button control and buzzer alerts. Compact, ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results