Polybot Grenoble / Mbed 2 deprecated CDF2019

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);
        }
*/
    }

}