GPS
Dependencies: C12832_lcd GPS mbed
Fork of mbed_gps by
main.cpp
- Committer:
- drealfemo
- Date:
- 2014-05-02
- Revision:
- 0:62fd06c20b0c
File content as of revision 0:62fd06c20b0c:
#include "mbed.h" #include "GPS.h" #include "C12832_lcd.h" C12832_LCD lcd; //Serial pc(USBTX, USBRX); GPS gps(p9, p10); int main() { while(1) { lcd.cls(); lcd.locate(3,3); if(gps.sample()) { lcd.printf("I'm at %f, %f\n", gps.longitude, gps.latitude); } else { lcd.cls(); lcd.locate(3,3); lcd.printf("Oh Dear!"); } wait(1); } }