Hi Titus,
The attached MBED generated binary has UART baud set to 115200.
Press and hold SW2 or SW3 and the terminal output will indicate which SW was pressed. Also the LED color changes.
With SW3, if you input a character, it will display the last 5 characters input (actually 6 but who's counting).
Use space bar to clear to clear that buffer.
Releasing the SW will also output the change.
Example terminal output:
Hello World from FRDM-K64F board.
SW2 released
SW3 released
SW2 pressed
SW2 released
SW3 pressed
Last 5 characters received were
SW3 released
SW3 pressed
Last 5 characters received were
SW3 released
SW3 pressed
Last 5 characters received were
SW3 released
SW3 pressed
Last 5 characters received were
SW3 released
SW2 pressed
SW2 released
SW3 pressed
Last 5 characters received were
SW3 released
SW3 pressed
Last 5 characters received were
SW3 released
SW3 pressed
Last 5 characters received were jhjhjh
SW3 released
SW3 pressed
Last 5 characters received were
SW3 released
SW3 pressed
Last 5 characters received were
5
SW3 released
SW3 pressed
Last 5 characters received were
58
SW3 released
SW3 pressed
Last 5 characters received were 58
SW3 released
SW3 pressed
Last 5 characters received were 58
SW3 released
SW2 pressed
SW2 released
SW3 pressed
Last 5 characters received were tyuiop
SW3 released
SW3 pressed
Last 5 characters received were
SW3 released
SW3 pressed
Last 5 characters received were ppppp
SW3 released
SW3 pressed
Last 5 characters received were p
SW3 released
FYI - to attach click on the "use advanced editor" link in upper right hand corner...then "Attach" link appears lower right corner.
Also attached is my MBED source.
Regards,
David