Mattei Caraman
/
Robot_Fou_v2
Robot fou
globals.cpp@0:8b7645cd8a39, 2018-06-01 (annotated)
- Committer:
- Mattei
- Date:
- Fri Jun 01 08:27:06 2018 +0000
- Revision:
- 0:8b7645cd8a39
v2;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mattei | 0:8b7645cd8a39 | 1 | #include "mbed.h" |
Mattei | 0:8b7645cd8a39 | 2 | #include "SRF05.h" |
Mattei | 0:8b7645cd8a39 | 3 | |
Mattei | 0:8b7645cd8a39 | 4 | |
Mattei | 0:8b7645cd8a39 | 5 | //Affectation broches capteur distance |
Mattei | 0:8b7645cd8a39 | 6 | SRF05 srf(p27, p28); |
Mattei | 0:8b7645cd8a39 | 7 | |
Mattei | 0:8b7645cd8a39 | 8 | //Affectation broches moteurs |
Mattei | 0:8b7645cd8a39 | 9 | DigitalOut SensD(p11); |
Mattei | 0:8b7645cd8a39 | 10 | DigitalOut SensG(p12); |
Mattei | 0:8b7645cd8a39 | 11 | BusOut leds(LED1,LED2,LED3,LED4); |
Mattei | 0:8b7645cd8a39 | 12 | PwmOut MotD(p22); |
Mattei | 0:8b7645cd8a39 | 13 | PwmOut MotG(p23); |
Mattei | 0:8b7645cd8a39 | 14 | AnalogIn Vbat(p15); |
Mattei | 0:8b7645cd8a39 | 15 | //Ticker t1; |
Mattei | 0:8b7645cd8a39 | 16 | Ticker t2; |