I am doing a project for my class that is due tuesday. I have been working with the PICAXE 08m all semester and I am trying to program my picaxe 28x1 and I can not do it. I am even trying a simple code like this.
main:
if pin2 = 1 then light
goto main
light:
high 7
pause 5000
low 7
goto main
and I have my output 7 wired to an LED.
When I turn on my PICAXE the light comes on completing ignoring the input pin 2. Am I doing something wrong I am missing. any input it insanely appreciated I have to finish this project and all I have left is programming which should be a pretty simple code.
Troubleshooting:
So far I know I can write code to my picaxe I dont think it is damaged.
main:
if pin2 = 1 then light
goto main
light:
high 7
pause 5000
low 7
goto main
and I have my output 7 wired to an LED.
When I turn on my PICAXE the light comes on completing ignoring the input pin 2. Am I doing something wrong I am missing. any input it insanely appreciated I have to finish this project and all I have left is programming which should be a pretty simple code.
Troubleshooting:
So far I know I can write code to my picaxe I dont think it is damaged.