Hello, I know the title lead to some questions but let me explain.
I currently use Picaxe 08M2, and I'm looking to interface a single pin to be use as input and output by the same internal program.
Maybe some of the users here had some experience with this, mostly in the electronic circuit.
My goal is to interface a Led at Pinc.1 and Pinc.2 and also a switch for each pin.
My guess is if I'm using the "Dirs" command I can control the pin as "Output" for the Led, and "Input" when needed to read the switch status.
also to use a do,,loop to check the status of the pin before setting it as out, or In.
If this scenario make sense, let me know. (see diagram)
Thank to All.
I currently use Picaxe 08M2, and I'm looking to interface a single pin to be use as input and output by the same internal program.
Maybe some of the users here had some experience with this, mostly in the electronic circuit.
My goal is to interface a Led at Pinc.1 and Pinc.2 and also a switch for each pin.
My guess is if I'm using the "Dirs" command I can control the pin as "Output" for the Led, and "Input" when needed to read the switch status.
also to use a do,,loop to check the status of the pin before setting it as out, or In.
If this scenario make sense, let me know. (see diagram)
Thank to All.