Shop OBEX P1 Docs P2 Docs Learn Events
It won't stop blinking - the horror — Parallax Forums

It won't stop blinking - the horror

TbagTbag Posts: 31
edited 2005-06-01 16:33 in BASIC Stamp
I ran a simple program with PBasic. The problem is I can't make it stop. It is a simple loop program.

I tried:

I closing the PBasic program.

I disconnected the power supply and reconnected.

Pressed and held reset button.

Its got a mind of its own. Is it something simple I am not doing?

Comments

  • edited 2005-06-01 14:24
    Hello,
    ··········· The stamp will run the program in its EEProm immediately on power up. If you want to stop a program. Run the following command only in your code.
    ·
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    Stop

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Stephen Swanson

    Technical Support
    Parallax, Inc.
    sswanson@parallax.com

  • TbagTbag Posts: 31
    edited 2005-06-01 15:24
    Thanks, that worked just fine.
  • kb2hapkb2hap Posts: 218
    edited 2005-06-01 15:26
    you should really take a look at this pdf Instead of jumping into programming the stamp Its very informative and great for beginners. It should answer most of your questions

    http://www.parallax.com/dl/docs/books/edu/Wamv2_2.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    DTQ
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-01 15:39
    To amplify what Stephen was telling you, when you click on the Run button in the editor you program gets compiled and downloaded to the BASIC Stamp -- it can't run anwhere else. What this means is that any program that was there gets overwritten, and that program will stay in place until you deliberately replace it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • TbagTbag Posts: 31
    edited 2005-06-01 16:33
    Thanks, that makes a lot of sense, and thats exactly what happened.

    T
Sign In or Register to comment.