gps
Dependencies: mbed
Revision 0:e01d32beb272, committed 2016-05-17
- Comitter:
- Nike3221
- Date:
- Tue May 17 11:57:19 2016 +0000
- Commit message:
- gps
Changed in this revision
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 |
diff -r 000000000000 -r e01d32beb272 main.cpp --- /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;} + }*/ + + } +}
diff -r 000000000000 -r e01d32beb272 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue May 17 11:57:19 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c \ No newline at end of file