Richard Kuo
/
NTOUEE-mbed-UART0
mbed UART0 print message
Diff: main.cpp
- Revision:
- 0:1d715454a185
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 20 12:36:04 2016 +0000 @@ -0,0 +1,9 @@ +// using NuMaker-PFM-NUC472 pinout +#include "mbed.h" + +Serial device(PG_2, PG_1); // TX0, RX0 + +int main() { + device.baud(115200); // set UART0 baudrate at 115200 + device.printf("Hello ARM mbed\n\r"); +}