8 years 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

Be the first to answer this question.