So I have a PIC 18 and I'm looking to use a single pin to control/sense the state of an external light bulb.
I figure the I/O pin would need to be set as an input to sense the state of the bulb and the it would also need to be set in software as an output to control it, or would it be easier to get done using external components?
I figure the I/O pin would need to be set as an input to sense the state of the bulb and the it would also need to be set in software as an output to control it, or would it be easier to get done using external components?