Let's Make Robots!

picaxe not running code?

my picaxe now downlods code but its not running it

here is my code

main:

pin1=1

pause 5000

pin1=0

pause 5000

goto main

now i hook a leds + to the number 1 on my proto boerd then the - to the G on my proto boerd. am i doing this rite?

thanks. tucker

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Geir Andersen's picture

You should probably have a current limiting resistor in series with the LED

BotFIN's picture

Well, this would be better code:

 

main:
high 1 'Turns port 1 high
pause 1000 'Pauses 1 second
low 1 'Turns port 1 low
pause 1000 'Pauses 1 second 
goto main 'Runs the loop again 

tucker98's picture

its working thank you!!!

tucker98's picture

thanks