GPS

Dependencies:   C12832_lcd GPS mbed

Fork of mbed_gps by Gideon Adekunle

Files at this revision

API Documentation at this revision

Comitter:
drealfemo
Date:
Fri May 02 14:50:25 2014 +0000
Commit message:
GPS code v1

Changed in this revision

C12832_lcd.lib Show annotated file Show diff for this revision Revisions of this file
GPS.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832_lcd.lib	Fri May 02 14:50:25 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dreschpe/code/C12832_lcd/#8f86576007d6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GPS.lib	Fri May 02 14:50:25 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/GPS/#15611c7938a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 02 14:50:25 2014 +0000
@@ -0,0 +1,26 @@
+#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);
+    }
+}
+ 
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri May 02 14:50:25 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file