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.
Dependencies: mbed
main.cpp
- Committer:
- CharlesBl
- Date:
- 2019-02-14
- Revision:
- 6:e20ec9f212ea
- Parent:
- 5:5d767f9355e2
- Child:
- 7:a59d1efdbfe1
File content as of revision 6:e20ec9f212ea:
#include "mbed.h" #include "Controler.h" Controler mcp; int main(){ for(int i=0; i<15; i++) { mcp.drive_forward(i); wait_ms(100); } for(int i=15; i>0; i--) { mcp.drive_forward(i); wait_ms(100); } for(int i=0; i<15; i++) { mcp.drive_backwards(i); wait_ms(100); } for(int i=15; i>0; i--) { mcp.drive_backwards(i); wait_ms(100); } }