The easiest is to do something like (where pin is the pin you want to use
and i is a byte variable not otherwise used at this point in your program):
FOR I = 1 TO 20
HIGH pin : PAUSE 25 : LOW pin : PAUSE 75
NEXT
You could use PULSOUT, but it would only replace the HIGH and first PAUSE. Often when I am making up a program to do something very specific in terms of high/low and timing, I will start with the simple statements, test the program, then begin substituting more complex statements like PULSOUT.
Comments
and i is a byte variable not otherwise used at this point in your program):
FOR I = 1 TO 20
HIGH pin : PAUSE 25 : LOW pin : PAUSE 75
NEXT
Thank you. I have look all through the command list and could not find one command to this like "PULSOUT"
Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com