![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
für holdor
Fork of PES by
Diff: main.cpp
- Revision:
- 0:306a2438de17
- Child:
- 1:4e84271a70c6
diff -r 000000000000 -r 306a2438de17 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Mar 21 12:42:01 2017 +0000 @@ -0,0 +1,30 @@ +#include <mbed.h> +#include "Roboter.h" + +DigitalOut led(LED1); + +//Periphery for distance sensors +AnalogIn distance(PB_1); +DigitalOut enable(PC_1); +DigitalOut bit0(PH_1); +DigitalOut bit1(PC_2); +DigitalOut bit2(PC_3); +IRSensor sensors[6]; + +//motor stuff +DigitalOut enableMotorDriver(PB_2); +PwmOut pwmL(PA_8); +PwmOut pwmR(PA_9); + +//indicator leds arround robot +DigitalOut leds[] = { PC_8, PC_6, PB_12, PA_7, PC_0, PC_9 }; + + +int main(){ + + + + + +return 0; +} \ No newline at end of file