GPS Program for Eco Car
Dependencies: MBed_Adafruit-GPS-Library SDFileSystem SDWriteTestShellEco TextLCD mbed
Fork of SDWriteTestShellEco by
Revision 1:4eff6f5ccb2b, committed 2015-03-30
- Comitter:
- mburns1
- Date:
- Mon Mar 30 19:06:43 2015 +0000
- Parent:
- 0:d96c133bf9d2
- Commit message:
- 3/30/15
Changed in this revision
SDWriteTest.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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SDWriteTest.lib Mon Mar 30 19:06:43 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/mburns1/code/SDWriteTestShellEco/#d96c133bf9d2
--- a/main.cpp Tue Mar 24 18:20:06 2015 +0000 +++ b/main.cpp Mon Mar 30 19:06:43 2015 +0000 @@ -2,12 +2,14 @@ #include "SDFileSystem.h" #include "stdio.h" #include "string.h" +#include "TextLCD.h" DigitalOut myled(LED1); //initialize on board LED -DigitalIn toggle(p7); //initialize toggle switch +DigitalIn toggle(p21); //initialize toggle switch Serial GPS(p9, p10); //initialize gps board Serial pc(USBTX, USBRX);//initialize serial pc connection -SDFileSystem sd(p11,p12,p13,p14,"sd"); //Initializes filesystem (DI, D0, CLK, CS) +SDFileSystem sd(p5,p6,p7,p11,"sd"); //Initializes filesystem (DI, D0, CLK, CS) +TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7 int hasbeenopened = 1; int haslooped = 0; @@ -24,6 +26,9 @@ myled=1; cc = GPS.getc(); fprintf(fp,"%c", cc); + char str1[2] = {cc , '\0'}; + char str2[5] = ""; + lcd.printf(strcpy(str2,str1)); haslooped=1; } myled=0;