View Full Version : sending a pin high in the com port (c++)

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.

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.


01-17-2004, 10:05 PM
ive not done this in c++, i have done it in VB for a project.

you need to include the input output dll file for your pc, and then you get the address of your card and send a decimal number to it, dpeneding on what the card manual specifies.

When i did this we were programming intel 8255 and 8254's programal chips.