GPSUSBHost

/media/uploads/va009039/usbgps.jpg

Import programGPSUSBHost

GPS USB dongle host

#include "mbed.h"
#include "usbgps.h"

Serial pc(USBTX, USBRX);

int main()
{
    pc.baud(460800);
    
    usbgps gps;
    while(1) {
        if (gps.readable()) {
            int c = gps.getc();
            printf("%c", c);
        }
    }
}


Please log in to post comments.