Programmeringsgruppe 1
/
Alarmsystem20_02_2018
klokka 15:07
Fork of AlarmsystemDel1 by
main.cpp
- Committer:
- andreped
- Date:
- 2018-01-25
- Revision:
- 0:33bf28fd1ac6
- Child:
- 1:6917ec4f5e6d
File content as of revision 0:33bf28fd1ac6:
#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); } }