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:cc8b4152b0cf
- Child:
- 1:9d198383f15c
diff -r 000000000000 -r cc8b4152b0cf main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Jul 07 08:11:29 2018 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "getGPS.h"
+
+Serial pc(USBTX, USBRX);
+GPS gps(p28, p27);
+
+int main()
+{
+ pc.printf("\r\n\nMission Start\r\n");
+
+ while(1) {
+ if(gps.getgps())
+ pc.printf("(%lf, %lf)\r\n", gps.latitude, gps.longitude);
+
+ else
+ pc.printf("No data\r\n");
+ }
+
+ return 0;
+}