ok

Dependencies:   mbed

Fork of _test_suivi_mur by christophe vermaelen

Committer:
vermaelen
Date:
Wed Jun 07 16:14:27 2017 +0000
Revision:
8:24a3fa0f912a
Parent:
3:b91371837109
V1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vermaelen 2:82b72fa8dbcd 1 #include "mbed.h"
vermaelen 2:82b72fa8dbcd 2 BusOut leds(LED1,LED2,LED3,LED4);
vermaelen 8:24a3fa0f912a 3
vermaelen 8:24a3fa0f912a 4 Serial CamPixy(p28,p27);
vermaelen 8:24a3fa0f912a 5
vermaelen 8:24a3fa0f912a 6 DigitalOut trig1(p11);//US1
vermaelen 8:24a3fa0f912a 7 InterruptIn echo1(p12);
vermaelen 8:24a3fa0f912a 8 DigitalOut trig2(p8);//US2
vermaelen 8:24a3fa0f912a 9 InterruptIn echo2(p24);
vermaelen 8:24a3fa0f912a 10 DigitalOut trig3(p26);//US3
vermaelen 8:24a3fa0f912a 11 InterruptIn echo3(p23);
vermaelen 8:24a3fa0f912a 12
vermaelen 8:24a3fa0f912a 13 I2C monI2C(p9,p10);
vermaelen 8:24a3fa0f912a 14 PwmOut Servo(p21);
vermaelen 2:82b72fa8dbcd 15
vermaelen 8:24a3fa0f912a 16 AnalogIn SD_1(p19); // capteur de distance courte droite
vermaelen 8:24a3fa0f912a 17 AnalogIn SD_2(p20); // capteur de distance courte gauche
vermaelen 8:24a3fa0f912a 18 AnalogIn LD_1(p17); // capteur de distance longue droite
vermaelen 8:24a3fa0f912a 19 AnalogIn LD_2(p18); // capteur de distance longue gauche
vermaelen 8:24a3fa0f912a 20
vermaelen 8:24a3fa0f912a 21 InterruptIn I_D(p30);
vermaelen 8:24a3fa0f912a 22 InterruptIn I_G(p29);
vermaelen 2:82b72fa8dbcd 23
vermaelen 8:24a3fa0f912a 24 SPI spi(p5,p6,p7);
vermaelen 8:24a3fa0f912a 25
vermaelen 8:24a3fa0f912a 26 AnalogIn C1(p15);// capteur de ligne blanche 1
vermaelen 8:24a3fa0f912a 27 AnalogIn C3(p16);// capteur de ligne blanche 3
vermaelen 8:24a3fa0f912a 28 //-- le capteur de ligne 2 est sur un MCP3201(spi) dont le CS est sur p13
vermaelen 8:24a3fa0f912a 29 DigitalOut CS_C2(p13);
vermaelen 8:24a3fa0f912a 30
vermaelen 8:24a3fa0f912a 31 PwmOut vitD(p25);
vermaelen 8:24a3fa0f912a 32 PwmOut vitG(p22);