Andrei IRL
Senior Member
Hi guys. Could do with a bit of help on this.
Im in need to control second transistor on my project that is based around 08M2 chip. Unfortunately i have ran out of I/O pins.
Currently i have two push buttons, i read somewhere that it is possible to read them using single pin via readadc.
I need to be able to read when either button is press as well as when both are pressed.
Would any one have time to explain how i go about it please. And how the buttons would be connected to a single pin?
I get the idea but i have sat down twice to draw the diagram and just cant work it out. The code i think should be easy enough to adjust.
Thanks very much in advance.
Im in need to control second transistor on my project that is based around 08M2 chip. Unfortunately i have ran out of I/O pins.
Currently i have two push buttons, i read somewhere that it is possible to read them using single pin via readadc.
I need to be able to read when either button is press as well as when both are pressed.
Would any one have time to explain how i go about it please. And how the buttons would be connected to a single pin?
I get the idea but i have sat down twice to draw the diagram and just cant work it out. The code i think should be easy enough to adjust.
Thanks very much in advance.