Thomas Van Aken
/
UART_Fill_Level
Test
Diff: main.cpp
- Revision:
- 0:91a51c5b8b55
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 05 13:18:42 2018 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" + +Serial device(PD_5,A0,9600); + +int main() { + device.format(8,SerialBase::None,1); + while(1){ + printf("0X%x\n\r",device.getc()); + } // end while 1 +} // end main \ No newline at end of file