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:
- robot_ligne
- Date:
- 2019-01-21
- Revision:
- 4:4329f61a927e
- Parent:
- 3:5c32522fbe3f
- Child:
- 5:5d767f9355e2
File content as of revision 4:4329f61a927e:
#include "mbed.h" #include "init.h" #include "moteur.h" volatile uint8_t command_tab [256][2]; DigitalOut led1(LED1); int main(){ led1=0; while(1){ command(drive_forward_M1 ,5); wait_ms(100); /* for(i=0; i<15; i++) { command(tab_command[drive_forward_M1] ,i); wait_ms(100); } for(i=15; i>0; i--) { command(tab_command[drive_forward_M1] ,i); wait_ms(100); } for(i=0; i<15; i++) { command(tab_command[] ,i); wait_ms(100); } for(i=15; i>0; i--) { command(tab_command[] ,i); wait_ms(100); } */ } }