gps tap test

Dependencies:   mbed

Revision:
0:2c0686a07ab8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Nov 23 19:10:01 2012 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "GPS.h"
+ 
+Serial pc(USBTX, USBRX);
+GPS gps(p13, p14);
+ 
+int main() {
+    while(1) {
+        if(gps.sample()) {
+            pc.printf("I'm at %f, %f\n", gps.longitude, gps.latitude);
+        } else {
+            pc.printf("Oh Dear! No lock :(\n");
+        }
+    }
+}
\ No newline at end of file