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
Diff: gps.cpp
- Revision:
- 4:88f7837f947f
- Parent:
- 3:3cd62c194bd0
- Child:
- 5:9ff2f6cd54d2
--- 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); } }