SAADI Nadia / Mbed 2 deprecated ComGPS

Dependencies:   C12832 mbed

Files at this revision

API Documentation at this revision

Comitter:
Nadia
Date:
Sun Mar 01 11:39:40 2015 +0000
Commit message:
reception des trames GPS et les affiche sur LCD

Changed in this revision

C12832.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.lib	Sun Mar 01 11:39:40 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/chris/code/C12832/#7de323fa46fe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Mar 01 11:39:40 2015 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "C12832.h"
+
+ 
+Serial GPS(p13, p14); //Pin13 TX, pin14 RX. 
+C12832 lcd(p5, p7, p6, p8, p11);
+
+int main() {
+  GPS.baud(9600);
+  unsigned char GPS_DATA;
+  lcd.cls();
+  lcd.locate(0,0);
+  lcd.printf("GPS FIX");
+  while(1){
+      if(GPS.readable()){
+        GPS_DATA=GPS.getc();
+        lcd.locate(0,15);
+        lcd.printf("%d",GPS_DATA);
+          }
+      }
+  
+ 
+  
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Mar 01 11:39:40 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9ad691361fac
\ No newline at end of file