Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 11 months ago.
Alarm System
Hello can anyone here share a code of an alarm system with three input and two output with interrupt. Basically the three inputs are pushbuttons and outputs are LED
I am thinking of the first input as the on/off switch. When input is first pressed it is on then when pressed again it is off. Like a GPIO.
Then the second input is for the alarm. The first pressed can be like the LED will start blinking . Meaning it got triggered so when it is pressed again it is off. But it wont work when the first input was off obviously.
Lastly the third input for interrupt. Basically I dont have any idea on how to perform this. So can someone help me on the fist two parts