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:27111a353928
- Child:
- 1:4ec28912c9e7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Mar 24 00:09:00 2015 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "DCMotor.h" +#include "ServoMotor.h" + +DigitalOut myled(LED1); + +int main() { + DCMotor dcMotor(p21,p17,p18); + //ServoMotor leftDoor(p11); + while(1) { + dcMotor.forward(); + myled = 1; + wait(1); + dcMotor.reverse(); + myled = 0; + wait(1); + } +}