[+] added uart-based debug for button demo

[*] changed some logic for more correct button timings (based on uart debug)