I am trying to test the picaxe 08m2 using input pins. Here is my program:
input c.3
main:
sertxd ("input value ", #pinc.3, cr, lf)
goto main
I also tried a couple of the other pins as well, all with the same results.
I download the program and bring up the terminal window. I have a "floating" wire on the picaxe pin that I switch between floating, +4.5, and ground (all from the picaxe power supply which is 3-AA batteries).
No matter how I connect the wire, I always see a value of "0" on the terminal window.
Can anyone tell me how to configure the picaxe 08m2 to use a pin as an input and correctly monitor it's state via the terminal window?
Thanks.
input c.3
main:
sertxd ("input value ", #pinc.3, cr, lf)
goto main
I also tried a couple of the other pins as well, all with the same results.
I download the program and bring up the terminal window. I have a "floating" wire on the picaxe pin that I switch between floating, +4.5, and ground (all from the picaxe power supply which is 3-AA batteries).
No matter how I connect the wire, I always see a value of "0" on the terminal window.
Can anyone tell me how to configure the picaxe 08m2 to use a pin as an input and correctly monitor it's state via the terminal window?
Thanks.