Shop OBEX P1 Docs P2 Docs Learn Events
looping a program with a pir sensor — Parallax Forums

looping a program with a pir sensor

PalanPalan Posts: 1
edited 2014-07-13 11:42 in BASIC Stamp
Hello,

i'm trying to loop existing program that is working well. I'm adding a PIR sensor to it in order to make the motors working just when there is someone around.
My problem is that the existing program already use the ''debug dec,cr'' command so I don't understand how to insert it for the looping ?

Is my questionmaking sense for someone ?

thank you
palan

Comments

  • 72sonett72sonett Posts: 82
    edited 2014-07-13 11:42
    Palan wrote: »
    My problem is that the existing program already use the ''debug dec,cr'' command
    You are not restricted to only one DEBUG command per program, just add another one wherever you want it.

    [code]
    .
    .
    .
    DEBUG DEC IN6,TAB, DEC IN7, TAB, DEC device, TAB,DEC setting, TAB, DEC temps,CR
    ' sache que les instructions DEBUG prennent un certain temps
Sign In or Register to comment.