affichage d m s

Dependencies:   mbed

Fork of GPS by tito tito

main.cpp

Committer:
dreday20
Date:
2012-11-23
Revision:
0:2c0686a07ab8
Child:
1:f24af888e699

File content as of revision 0:2c0686a07ab8:

#include "mbed.h"
#include "GPS.h"
 
Serial pc(USBTX, USBRX);
GPS gps(p13, p14);
 
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");
        }
    }
}