Programme de base de test des moteurs du robot n1n0

Dependencies:   mbed

main.cpp

Committer:
vermaelen
Date:
2022-02-20
Revision:
0:40d36ea52f2b
Child:
1:58d0fa08841c

File content as of revision 0:40d36ea52f2b:

#include "mbed.h"

//sorties PWM
PwmOut moteurG(p23);
PwmOut moteurD(p22);

//sorties Digital
DigitalOut sensG (p12);
DigitalOut sensD (p11);

int main()
{
    //initialisation
    moteurG.period_us(100);
    moteurD.period_us(100);
    sensG.write(0);
    sensD.write(0);
    
    //boucle infinie
    while(1) {
       
    }
}