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:
- 70:e6cc44d1487d
- Parent:
- 69:d7125d5b5cc8
- Child:
- 71:4747e63eb48c
--- a/main.cpp Wed Oct 12 11:52:25 2022 +0000 +++ b/main.cpp Wed Oct 12 11:57:45 2022 +0000 @@ -1,6 +1,5 @@ #include "mbed.h" #include "m3pi.h" -#include "mbed2/170/wait_api.h" m3pi m3pi; @@ -142,7 +141,7 @@ wait(10.0); m3pi.cls(); m3pi.locate(0,0); - m3pi.printf("ROBOT ON"; + m3pi.printf("ROBOT ON"); m3pi.locate(0,1); m3pi.printf("TRACK!!"); wait(4.0); @@ -156,15 +155,12 @@ } void LCD_CountDown(int num){ - char str[8] = "** **"; for (int i=0; i<num; i++) { m3pi.cls(); m3pi.locate(0,0); - str[4] = i; - - m3pi.print(str, 8); + m3pi.printf("** %d **", i); wait(1.0); }