cravenhaven
Senior Member
Simple test code to try and understand how to set a digital input.
If I click on the values tab in the simulation panel and then set pin C.3 to 255 I would expect the IF statement to be executed but it doesnt. If I hover over the pinC.3 statement it shows its value to be 0 regardless of what I type into the values table.
Same with the other input pins.
If I click on the values tab in the simulation panel and then set pin C.3 to 255 I would expect the IF statement to be executed but it doesnt. If I hover over the pinC.3 statement it shows its value to be 0 regardless of what I type into the values table.
Same with the other input pins.
Code:
#picaxe 08M2
main:
if pinC.3 = 1 then goto main
goto main