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
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); } }