christophe vermaelen
/
n1n0_moteurs_sens
Programme de base de test des moteurs du robot n1n0
Diff: main.cpp
- Revision:
- 0:40d36ea52f2b
- Child:
- 1:58d0fa08841c
diff -r 000000000000 -r 40d36ea52f2b main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Feb 20 08:35:25 2022 +0000 @@ -0,0 +1,25 @@ +#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) { + + } +} + +