I am trying to tackle my first PICAXE project and I want to eventually move it to transmit over RF. My code is as follows:
Basically I am trying to sense when pinC.3 is pulled high and when it is I want to flash the LED to alert. I can get it running when I have the loop run with "if pinC.3 = 0 then flash" and when I click the button it stops the flash. But when I change it to "if pinC.3 = 1 then flash" it will not start flashing when I click the button.
What gives?
Thanks!
Rich (BB code):
main:
if pinC.3 = 1 then flash
goto main
flash:
high B.2
pause 100
low B.2
pause 100
goto main
What gives?
Thanks!