MoJo / ER2_Labyrinthe

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers globals.cpp Source File

globals.cpp

00001 #include "mbed.h"
00002 #include"SRF05.h"
00003 #include "fonction.h"
00004 
00005 
00006 SRF05 SRF(p13,p14);
00007 DigitalOut SensG(p12);//Sens Gauche
00008 DigitalOut SensD(p11);//Sens Droite
00009 PwmOut PWMG(p23); //Sortie moteur gauche
00010 PwmOut PWMD(p22); //Sortie moteur droit
00011 DigitalIn BpD(p29);
00012 DigitalIn BpG(p30);  
00013 AnalogIn CPTG (p20);
00014 AnalogIn CPTD (p19);
00015 AnalogIn BAT (p15);