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:45f1f67eab62
- Parent:
- 0:5b681ac34259
- Child:
- 3:7ca21112a13d
--- a/main.cpp Wed Nov 25 06:53:50 2015 +0000 +++ b/main.cpp Wed Dec 02 16:47:26 2015 +0000 @@ -1,7 +1,14 @@ #include "mbed.h" -#include "sensors.h" +#include "util.h" int main() { + while(1){ + pc.printf("L: %d\n", leftMotor.getPulses()); + pc.printf("R: %d\n", rightMotor.getPulses()); + + leftMotor.setPwm(1.0); + rightMotor.setPwm(1.0); + } return 0; }