Get input from ports and send output

Jul 30, 2014 at 2:09pm
I'm learning C++. Is there some way to make program function on input from a port like usb port and can I send bits through the port? For example A usb cable connected to a circuit. I press a button and an AND gate on the circuit gets activated by a bit from the usb port and a fan in the room turns on.
Jul 30, 2014 at 3:23pm
Last edited on Jul 30, 2014 at 3:24pm
Topic archived. No new replies allowed.