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:
- 1:4ab886b72870
- Parent:
- 0:7e54f0e2be67
- Child:
- 2:5f29bc7daa49
--- a/main.cpp Fri Mar 16 20:32:02 2018 +0000 +++ b/main.cpp Fri Mar 16 20:50:41 2018 +0000 @@ -7,6 +7,7 @@ PwmOut stepFR(PTA5); PwmOut magArm(PTA12); InterruptIn killAll(PTC3); +DigitalIn Start(PTC12); DigitalOut enableH(PTC11); DigitalOut highH(PTC10); @@ -74,6 +75,11 @@ highH = 1; //This is always high for the H-Bridge enableH = 0; //Making sure the H-Bridge starts low and off + while(true) + { + if (Start == 0) + break; + } while(true)