Start Project for BertlProgramms

Dependencies:   BertlLib mbed

Committer:
hollegha2
Date:
Tue May 24 11:44:20 2016 +0000
Revision:
4:4b71af20b3b7
Parent:
3:6a490ad8cb46
Add  LineSensors

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hollegha2 0:fa9b473d690b 1
hollegha2 0:fa9b473d690b 2 #include "mbed.h"
hollegha2 0:fa9b473d690b 3 #include "Serial_HL.h"
hollegha2 0:fa9b473d690b 4 #include "Bertl14.h"
hollegha2 0:fa9b473d690b 5 #include "BertlObjects.h"
hollegha2 0:fa9b473d690b 6
hollegha2 2:d24a3d2438a4 7 // main=2^0 LS ENC 2^2
hollegha2 2:d24a3d2438a4 8 BusOut boardPow(p30, P1_6, P1_7);
hollegha2 0:fa9b473d690b 9
hollegha2 4:4b71af20b3b7 10 // ls5 nur beim Betrl15
hollegha2 4:4b71af20b3b7 11 // AnalogInHL ls1(p18), ls2(p16), ls3(p19), ls4(p17); // B14
hollegha2 4:4b71af20b3b7 12
hollegha2 4:4b71af20b3b7 13 AnalogInHL ls1(p18), ls2(p16), ls3(p20), ls4(p19), ls5(p17); // B15
hollegha2 4:4b71af20b3b7 14
hollegha2 0:fa9b473d690b 15 int main(void)
hollegha2 0:fa9b473d690b 16 {
hollegha2 2:d24a3d2438a4 17 boardPow=1; wait_ms(10);
hollegha2 0:fa9b473d690b 18 InitBertl();
hollegha2 0:fa9b473d690b 19 pex.useISR=0; leds=9;
hollegha2 0:fa9b473d690b 20 pex.ClearLeds();
hollegha2 0:fa9b473d690b 21
hollegha2 0:fa9b473d690b 22 while(1)
hollegha2 0:fa9b473d690b 23 {
hollegha2 3:6a490ad8cb46 24 mL.SetPow(0.2); mR.SetPow(0.2);
hollegha2 0:fa9b473d690b 25 }
hollegha2 0:fa9b473d690b 26
hollegha2 0:fa9b473d690b 27 return 1;
hollegha2 0:fa9b473d690b 28 }
hollegha2 0:fa9b473d690b 29
hollegha2 0:fa9b473d690b 30