Ryosuke Yumoto
/
GMS6-CR6_Hello_World
GPS sample program for training session in yokohama aerospace
Diff: main.cpp
- Revision:
- 0:bce2ec199fba
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Oct 10 15:02:27 2015 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); // tx, rx +Serial gps(p9,p10); + + +int main() { + //pc.printf("Hello World!\n\r"); + gps.baud(9600); + gps.format(8,SerialBase::None,1); + wait(5); + + while(1) { + pc.printf("%c",gps.getc()); + } +} \ No newline at end of file