boe bot LED flashing
zx1shadow
Posts: 5
hi guys a pretty basic question im sure (no pun intended) but how can i loop a led flash program for a set amount of time.BASIC stamp 2.5 in a boe bot
Comments
FOR SomeNumber = 1 To 60
HIGH 1
PAUSE 500
LOW 1
PAUSE 500
NEXT[/HTML]
Blinks an LED on Pin 1 once a second for 60 secs (approximately).
Is that what you meant by "a set period of time"?
PULSOUT 1, 40000
PULSOUT 10, 40000
PAUSE 200
PULSOUT 1, 40000
PULSOUT 10, 40000
PAUSE 200
PULSOUT 1, 40000
PULSOUT 10, 40000
PAUSE 200
PULSOUT 1, 40000
PULSOUT 10, 40000