LCD 16x2 with I2C

I use button as input to arduino and LCD as the output. The input is Morse code and the output is characters in LCD, so the long push and total push of the button will influencing the output on LCD. If i give the wrong input, it will give me the wrong output. So, what kind of function arduino that can used as 'delete' when i give the wrong input? And the function can used in button too.

Moderator by Abubakar.ino (5.46 KB)

  1. sketch to be able to write to the LCD

  2. sketch to be able to understand button presses

  3. combine together.

That is how you do it!