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-17
Revision:
22:9551b2ce17c9
Parent:
21:dfa20810d1d0

File content as of revision 22:9551b2ce17c9:

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

#define GPSBUFFSIZE 256

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

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