Dist Sensor Test

Dependencies:   BertlLib mbed

Fork of BertlTemplate2 by michael hollegha

Committer:
hollegha2
Date:
Mon Feb 22 10:55:46 2016 +0000
Revision:
2:d24a3d2438a4
Parent:
0:fa9b473d690b
rev 3.0

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 0:fa9b473d690b 10 int main(void)
hollegha2 0:fa9b473d690b 11 {
hollegha2 2:d24a3d2438a4 12 boardPow=1; wait_ms(10);
hollegha2 0:fa9b473d690b 13 InitBertl();
hollegha2 0:fa9b473d690b 14 pex.useISR=0; leds=9;
hollegha2 0:fa9b473d690b 15 pex.ClearLeds();
hollegha2 0:fa9b473d690b 16
hollegha2 0:fa9b473d690b 17 while(1)
hollegha2 0:fa9b473d690b 18 {
hollegha2 0:fa9b473d690b 19 }
hollegha2 0:fa9b473d690b 20
hollegha2 0:fa9b473d690b 21 return 1;
hollegha2 0:fa9b473d690b 22 }
hollegha2 0:fa9b473d690b 23
hollegha2 0:fa9b473d690b 24