narf
01-17-2004, 06:54 PM
Could anyone tell me how to send (we'll sey pin one) high using c++.
I have made an alarm for my bedroom and i wanted to be able to disarm it from my pc.
I would also like the program to do something when the alarm goes off.
when it goes off it will send a current down to pin 5.So is it possible for my program to detect this and use cout to display a message.
Also:
is there a timing function in c++.
When a sensor is tripped it will send logic high to a pin.But i would type in a password and stop it from activating the alarm.If the password is not enered within 30 seconds it will be activated.
Thanks,
NARF!!
I have made an alarm for my bedroom and i wanted to be able to disarm it from my pc.
I would also like the program to do something when the alarm goes off.
when it goes off it will send a current down to pin 5.So is it possible for my program to detect this and use cout to display a message.
Also:
is there a timing function in c++.
When a sensor is tripped it will send logic high to a pin.But i would type in a password and stop it from activating the alarm.If the password is not enered within 30 seconds it will be activated.
Thanks,
NARF!!