1 Attachment(s)
Need help with a Analog and Digital Intruder alarm
Hey guys I'm new here and I'm struggling on my electronics project.
I have to create an embedded system of my choice (i went for an Intruder alarm). It has 3 inputs - a sliding switch (digital), PIR sensor (digital), IR sensor (Analog).
I have attached my c code.
I just want to know how the main function coudl work for having 3 inputs (2 digital and 1 analog) into 1 named function I've created.
C code is attached.
Thanks for anyone who can help!Attachment 16330