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:
- d2_h10s
- Date:
- 2020-08-26
- Revision:
- 0:6cf9362fc1a1
- Child:
- 1:9b7603b90063
File content as of revision 0:6cf9362fc1a1:
#include "mbed.h" #include "Robot.h" #define L_dir D2 #define L_step D3 #define L_enb D4 #define R_dir D5 #define R_step D6 #define R_enb D7 Robot a(L_dir, L_step, L_enb, R_dir, R_step, R_enb); int main(){ a.enable(both); a.move_cm(go, 10); while(1){ //a.move_speed(go, 30); while(a.isRun()){ //a.run_speed(both); a.run(both); } a.stop(both); } }