Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of LAB03_Oppgave2_FancyLoning by
Revision 2:a27126b6128e, committed 2015-10-15
- Comitter:
- rlanghbv
- Date:
- Thu Oct 15 08:38:07 2015 +0000
- Parent:
- 1:2e42c8846b90
- Commit message:
- Error fix
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 08:38:07 2015 +0000
@@ -1,13 +1,17 @@
#include "mbed.h"
InterruptIn knapp(PB_3);
-
BusOut leds(PA_9,PC_7,PB_6,PA_7,PA_6,PA_5,PB_5,PB_4);
static int teller=0;
+Timeout timeOutIrq;
+void enableKnappeTrykk(){
+ knapp.enable_irq();
+}
void knappTrykket(){
-
+ knapp.disable_irq();
+ timeOutIrq.attach(&enableKnappeTrykk,.1);
teller=teller+1;
leds=~teller;
}
