![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
27.02.2018
Dependencies: Matrix
Fork of Alarmsystem_log_funksjon_funker_ikke 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); } }