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.
Dependencies: mbed
Revision 4:88f7837f947f, committed 2019-11-10
- Comitter:
- saeichi
- Date:
- Sun Nov 10 10:41:19 2019 +0000
- Parent:
- 3:3cd62c194bd0
- Commit message:
- GPSXBee
Changed in this revision
| gps.cpp | Show annotated file Show diff for this revision Revisions of this file |
| sendGPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/gps.cpp Wed Oct 30 05:37:08 2019 +0000
+++ b/gps.cpp Sun Nov 10 10:41:19 2019 +0000
@@ -4,6 +4,7 @@
Serial pc(USBTX,USBRX);
GPS gps (p28,p27);
+Serial xbee(p13,p14);
int main() {
@@ -55,11 +56,13 @@
if (distance<5){
}else{
pc.printf("5m clear!");
+ xbee.printf("5m clear!");
break;
}
}else{
- pc.printf("NO DATA\r\n");//データ取得失敗
+ xbee.printf("NO DATA\r\n");//データ取得失
+ pc.printf("NO DATA\r\n");
wait(1);
}
}