klokka 15:07

Fork of AlarmsystemDel1 by Programmeringsgruppe 1

Revision:
0:33bf28fd1ac6
Child:
1:6917ec4f5e6d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jan 25 08:59:55 2018 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+
+#define ON 1
+#define OFF 0
+#define AlarmSone1 1
+#define AlarmSone2 2
+#define AlarmSone3 4
+#define AlarmSone4 8
+
+DigitalOut Driftslys(LED1);
+BusOut Alarm(p21, p22, p23, p24);
+DigitalIn Servicebryter(p20);
+DigitalIn Sone1(p15);
+DigitalIn Sone2(p16);
+DigitalIn Sone3(p17);
+DigitalIn Sone4(p19);
+
+Ticker AlarmBlink; 
+
+
+int main() {
+    while(1) {
+        Driftslys = 1;
+        
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}