![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
TP_presa
Dependencies: SRF08 Servo mbed
main.cpp@5:8c2101d3ecef, 2017-05-31 (annotated)
- Committer:
- Remi95
- Date:
- Wed May 31 18:38:08 2017 +0000
- Revision:
- 5:8c2101d3ecef
- Parent:
- 4:aafb0016ed84
- Child:
- 6:d61052f4ab1e
Introducing VOITURE.cpp
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Remi95 | 0:99cb324a2329 | 1 | #include "mbed.h" |
Remi95 | 5:8c2101d3ecef | 2 | #include "VOITURE.h" |
Remi95 | 5:8c2101d3ecef | 3 | #include "SRF08.h" |
Remi95 | 0:99cb324a2329 | 4 | |
Remi95 | 4:aafb0016ed84 | 5 | |
Remi95 | 5:8c2101d3ecef | 6 | SRF08 capteur_US(p28,p27,ADR_US) |
Remi95 | 5:8c2101d3ecef | 7 | VOITURE robot; |
Remi95 | 5:8c2101d3ecef | 8 | int main(void){ |
Remi95 | 5:8c2101d3ecef | 9 | //S2=0; |
Remi95 | 5:8c2101d3ecef | 10 | while(1){ |
Remi95 | 5:8c2101d3ecef | 11 | //batterie(); |
Remi95 | 5:8c2101d3ecef | 12 | //wait (1); |
Remi95 | 5:8c2101d3ecef | 13 | robot.Led(0,1,0,0); |
Remi95 | 5:8c2101d3ecef | 14 | robot.sbt.putc(Adress); |
Remi95 | 5:8c2101d3ecef | 15 | } |
Remi95 | 5:8c2101d3ecef | 16 | |
Remi95 | 0:99cb324a2329 | 17 | } |