This Arduino project reads a push button and attempts to detect Morse code signals (dots and dashes) based on how long the button is pressed.
Dot (.): Short press (< 6 seconds) Dash (-): Long press (≥ 6 seconds)
It also prints the button state and current time (millis) to the Serial Monitor for debugging.
Arduino board Uno Push button Breadboard and jumper wires
#author Richard Aldo Makendi