Nile Mittow / Mbed 2 deprecated HL_GwoopsGPS_Example

Dependencies:   mbed

Fork of HL_GPS_Example by Nile Mittow

main.cpp

Committer:
HackerLabATTKit01
Date:
2017-03-16
Revision:
21:dfa20810d1d0
Parent:
20:a728f1075fb1
Child:
22:9551b2ce17c9

File content as of revision 21:dfa20810d1d0:

#include "mbed.h"
#include "GwoopsGPS.h"

#define GPSBUFFSIZE 256

Serial pc(USBTX, USBRX); // tx, rx
Serial sgps(PTC15, PTC14, 9600);

 
int main() {
    pc.printf("Where am I? ----------- \n\r");
    GwoopsGPS xgps(&sgps);
    while(1) {
        if (xgps.isValid()) {
            pc.printf("\r\n");
            xgps.printData(&pc);
        }
        else pc.printf(".");
    }
}