10 years, 8 months ago.

get c without wait

can i do a pc.getc() without it waiting for input

Question relating to:

1 Answer

10 years, 8 months ago.

Certainly, have a look at https://developer.mbed.org/handbook/Serial, there is an API member function called readable().
The serial pass-through example on this page demonstrates how to use it.

Accepted Answer