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.
Dependencies: Bus_Navigation GPS_HelloWorld TextLCD mbed
Fork of GPS_HelloWorld by
main.cpp
- Committer:
- simon
- Date:
- 2010-06-08
- Revision:
- 0:6b7345059afe
- Child:
- 1:ba73ffc5805f
File content as of revision 0:6b7345059afe:
#include "mbed.h"
#include "GPS.h"
Serial pc(USBTX, USBRX);
GPS gps(p9, p10);
int main() {
while(1) {
if(gps.sample()) {
pc.printf("I'm at %f, %f\n", gps.longitude, gps.latitude);
} else {
pc.printf("Oh Dear! No lock :(\n");
}
}
}
