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.
Diff: main.cpp
- Revision:
- 0:38958ff5de62
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Jun 24 04:47:14 2014 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "Venus838.h"
+
+Serial pc(USBTX, USBRX);
+Venus838 gps(PA_11, PA_12);
+
+int main() {
+ pc.baud(115200);
+ gps.setNavigationMode(4);
+ wait_ms(100);
+ gps.setUpdateRate(10);
+ wait_ms(100);
+ gps.setNmeaMessages(true, false, false, false, true, false);
+ while(true) {
+ if(gps.readable()) pc.putc(gps.getc());
+ if(pc.readable()) gps.putc(pc.getc());
+ }
+}
\ No newline at end of file