Hi All,
I've looked for this but did not find anything. Please excuse my lack of understanding of Digital In.
I was thinking that Digital In is similar to Digital Out where the signal is either On or Off. So I was wondering if you can read a digital in signal and it would show On or Off...
What I'm trying to do is this... Press a button and it supplies ?Voltage to the DigitalIn pin. The read would return "On". Depress the button and the voltage on the pin is pulled down. Now a read on that pin is "Off".
Can this be done? I did not want to hurt my mbed by trying this before asking...
Cheers
Tim
Hi All,
I've looked for this but did not find anything. Please excuse my lack of understanding of Digital In.
I was thinking that Digital In is similar to Digital Out where the signal is either On or Off. So I was wondering if you can read a digital in signal and it would show On or Off...
What I'm trying to do is this... Press a button and it supplies ?Voltage to the DigitalIn pin. The read would return "On". Depress the button and the voltage on the pin is pulled down. Now a read on that pin is "Off".
Can this be done? I did not want to hurt my mbed by trying this before asking...
Cheers
Tim