Ryosuke Yumoto
/
GMS6-CR6_Hello_World
GPS sample program for training session in yokohama aerospace
Revision 0:bce2ec199fba, committed 2015-10-10
- Comitter:
- onseeen
- Date:
- Sat Oct 10 15:02:27 2015 +0000
- Commit message:
- This program is sample program of the gps module for the training session in yokohama aerospace.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Oct 10 15:02:27 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68 \ No newline at end of file