rettet verjon av lab 7 oppgave 2

Dependencies:   mbed

Fork of LAB07_Oppgave2 by EL-POM1001

Files at this revision

API Documentation at this revision

Comitter:
tcuc
Date:
Thu Oct 15 07:45:10 2015 +0000
Parent:
1:2e42c8846b90
Commit message:
Rettet LAB07_oppgave2 program, la til 2 manglene linjer.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;    
 }