Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
diff -r 000000000000 -r bce2ec199fba main.cpp
--- /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
diff -r 000000000000 -r bce2ec199fba mbed.bld --- /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