Shop OBEX P1 Docs P2 Docs Learn Events
AW: [basicstamps] One Shot Circuit Done With Software — Parallax Forums

AW: [basicstamps] One Shot Circuit Done With Software

ArchiverArchiver Posts: 46,084
edited 2001-05-22 15:41 in General Discussion
Hi Garry,

I solved a similar problem by simply doing the routine once and then wait
for the button to go 0 again. only when it has turned 0 the next 1 can rerun
the loop again.


start:
if button = 1 then loop

loop:
'here comes the loop
hold_on:
if button =1 then hold_on

goto start


Does that match your purposes?

greetings, Uli
www.raumschiff-interactive.de

Urspr

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-05-22 15:38
    Hi Garry,

    I solved a similar problem by simply doing the routine once and then wait
    for the button to go 0 again. only when it has turned 0 the next 1 can rerun
    the loop again.


    start:
    if button = 1 then loop

    loop:
    'here comes the loop
    hold_on:
    if button =1 then hold_on

    goto start


    Does that match your purposes?

    greetings, Uli


    www.raumschiff-interactive.de

    Urspr
  • ArchiverArchiver Posts: 46,084
    edited 2001-05-22 15:41
    sorry, forgot one line:



    Hi Garry,

    I solved a similar problem by simply doing the routine once and then wait
    for the button to go 0 again. only when it has turned 0 the next 1 can rerun
    the loop again.


    start:
    if button = 1 then loop
    GOTO START 'this line was missing

    loop:
    'here comes the loop
    hold_on:
    if button =1 then hold_on

    goto start


    Does that match your purposes?

    greetings, Uli

    www.raumschiff-interactive.de

    Urspr
Sign In or Register to comment.