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.
main.cpp
- Committer:
- ahmedallibhoy
- Date:
- 2015-12-02
- Revision:
- 1:45f1f67eab62
- Parent:
- 0:5b681ac34259
- Child:
- 3:7ca21112a13d
File content as of revision 1:45f1f67eab62:
#include "mbed.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; }