triton82354
Member
Iam using the PicAxe Experimenter Board...Loaded sample codes from quick start section of manual 1..Works great...
Now Iam writing a simple code with a push switch <that is on board>..
wrote this code and simulated it with the 28x1 setting in option tab...it ran
main: ‘ make a label called ‘main’
if pin0 = 1 then flash ‘ jump if the input is on
goto main ‘ else loop back around
flash: ‘ make a label called ‘flash’
init: servo 4,75 ‘ start servo on 4
servopos 4,75 ‘ move servo to one end
pause 2000 ‘ wait 2 seconds
servopos 4,150 ‘ move servo to centre
pause 2000 ‘ wait 2 seconds
servopos 4,225 ‘ move servo to other end
pause 2000 ‘ wait 2 seconds
goto main ‘ loop back to start
tryed to program the chip by clicking program tab it asks to change to 28x2 ...now iam getting a compile error
if pin0 = 1 then flash ‘ jump if the input is on
^
Error: Unknown symbol - pin0
any suggestions
Now Iam writing a simple code with a push switch <that is on board>..
wrote this code and simulated it with the 28x1 setting in option tab...it ran
main: ‘ make a label called ‘main’
if pin0 = 1 then flash ‘ jump if the input is on
goto main ‘ else loop back around
flash: ‘ make a label called ‘flash’
init: servo 4,75 ‘ start servo on 4
servopos 4,75 ‘ move servo to one end
pause 2000 ‘ wait 2 seconds
servopos 4,150 ‘ move servo to centre
pause 2000 ‘ wait 2 seconds
servopos 4,225 ‘ move servo to other end
pause 2000 ‘ wait 2 seconds
goto main ‘ loop back to start
tryed to program the chip by clicking program tab it asks to change to 28x2 ...now iam getting a compile error
if pin0 = 1 then flash ‘ jump if the input is on
^
Error: Unknown symbol - pin0
any suggestions