Test für den Test

Dependencies:   mbed

main.cpp

Committer:
schoeni_91
Date:
2016-01-18
Revision:
0:6ef5de7d9560

File content as of revision 0:6ef5de7d9560:

#include "mbed.h"

InterruptIn iiUp(p15);
InterruptIn iiDown (p12);
BusOut boLeds(LED1,LED2,LED3,LED4);


void cntUp() 
{
    boLeds=boLeds +1;
}

void cntDown() 
{
    boLeds=boLeds -1;
}



int main() {
    boLeds=0;
    iiUp.fall(&cntUp);
    iiDown.rise(&cntDown);
    while (1) {
        }
    }