Serial stops returning data. java.io.IOException: Device not configured in write

You need to debounce them

What does that mean?

I attached all the code as a text file. Was too big for the textarea.

code.txt (23.8 KB)