![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test für den Test 1
Fork of interupt_counter by
Diff: main.cpp
- Revision:
- 0:6ef5de7d9560
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 18 09:44:43 2016 +0000 @@ -0,0 +1,27 @@ +#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) { + } + } +