it is veri gud program

Dependencies:   BertlLib mbed

Fork of BertlTemplate2 by michael hollegha

BertlTemplate.cpp

Committer:
hollegha2
Date:
2016-05-24
Revision:
4:4b71af20b3b7
Parent:
3:6a490ad8cb46
Child:
5:ea4229d52ab6

File content as of revision 4:4b71af20b3b7:


#include "mbed.h"
#include "Serial_HL.h"
#include "Bertl14.h"
#include "BertlObjects.h"

//              main=2^0  LS    ENC 2^2
BusOut boardPow(p30,      P1_6, P1_7);

// ls5 nur beim Betrl15
// AnalogInHL ls1(p18), ls2(p16), ls3(p19), ls4(p17); // B14

AnalogInHL ls1(p18), ls2(p16), ls3(p20), ls4(p19), ls5(p17); // B15

int main(void)
{
    boardPow=1; wait_ms(10);
    InitBertl();
    pex.useISR=0; leds=9;
    pex.ClearLeds();
    
    while(1)
    {
        mL.SetPow(0.2); mR.SetPow(0.2);
    }
    
    return 1;
}