Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:0522a96f04ed
- Child:
- 1:a4ab99c0f7ea
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Jan 30 06:55:22 2011 +0000
@@ -0,0 +1,41 @@
+// GPS GT-720F Test01
+#include "mbed.h"
+#include "TextLCD0420.h"
+
+#define ON 1
+#define OFF 0
+
+DigitalOut mled0(LED1);
+DigitalOut mled1(LED2);
+
+TextLCD lcd(p24, p25, p26, p27, p28, p29, p30,20,4); // rs, rw, e, d0, d1, d2, d3
+Serial pc(USBTX, USBRX); // tx, rx
+Serial gps(p9,p10);
+
+int main() {
+
+ unsigned char c;
+ int i;
+
+ gps.baud(9600);
+ lcd.cls();
+ lcd.locate(0,0);
+ lcd.printf("GPS GT720F Test\n");
+
+ while (1) {
+ while(gps.getc()!='$'){
+ }
+ pc.printf("\x0D");// new line
+ pc.printf("Recive start:\n");
+ c=gps.getc();
+ while( c != '\r'){ //line end
+ pc.putc(c);
+ c=gps.getc();
+ }
+ pc.printf("\n");
+
+ }//while
+}//main
+
+
+