retepsnikrep
Senior Member
http://www.picaxeforum.co.uk/showthread.php?t=7546&highlight=outpins
Looking at the above thread i though I had this right, however when I simulate the code below it never detects the state of the pin even though you can see Outpins changing in the variable panel.
What am I doing wrong? Thanks Peter
Looking at the above thread i though I had this right, however when I simulate the code below it never detects the state of the pin even though you can see Outpins changing in the variable panel.
Code:
symbol WatchDogLed = 3 ;Watchdog flashing Green Led on Output 3 (Flashes every other program loop)
Start:
toggle WatchDogLed ;Keeps watchdog happy, flashes every other time through loop
pause 1000
if outpin3 = 1 then
stop
endif
goto Start