gps

Dependencies:   mbed

Revision:
0:e01d32beb272
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 17 11:57:19 2016 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+Serial pc(USBTX,USBRX);
+Serial gpsline(p13,p14);
+char gps_data[256];
+int a;
+
+int main() {
+    while(1) {
+              /*for(a=0;a<=256;a++)
+              {
+              if(gps_date[0]=='$')
+               {pc.printf("\n");}
+              */
+              gps_data[0] = gpsline.getc();
+              pc.printf("%c",gps_data[0]);
+              /*
+              if(a>=200)
+               {a=0;}
+              }*/
+        
+             }
+}