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.
main.cpp
- Committer:
- ethanharstad
- Date:
- 2014-06-24
- Revision:
- 1:6682e439dc5e
- Parent:
- 0:38958ff5de62
File content as of revision 1:6682e439dc5e:
#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());
}
}