rettet verjon av lab 7 oppgave 2
Dependencies: mbed
Fork of LAB07_Oppgave2 by
Diff: main.cpp
- Revision:
- 2:55b0fc859918
- Parent:
- 1:2e42c8846b90
diff -r 2e42c8846b90 -r 55b0fc859918 main.cpp --- a/main.cpp Wed Oct 14 18:28:27 2015 +0000 +++ b/main.cpp Thu Oct 15 07:45:10 2015 +0000 @@ -6,8 +6,10 @@ static int teller=0; -void knappTrykket(){ - +void knappTrykket() +{ + knapp.disable_irq(); + timeOutIrq.attatch(&enableKnappTrykk,.1; teller=teller+1; leds=~teller; }