Thomas Schöngeld
/
interupt_counter
Test für den Test 1
Fork of interupt_counter by
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) { } }