PDA

View Full Version : It won't stop blinking - the horror



Tbag
06-01-2005, 08:42 PM
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?

Stephen Swanson (Parallax)
06-01-2005, 09:24 PM
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

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
[/url]
Stephen Swanson
Technical Support
Parallax, Inc.
sswanson@parallax.com (http://www.americaneconomicalert.org/ticker_home.asp)
[url=http://www.parallax.com/] (http://www.parallax.com)

Tbag
06-01-2005, 10:24 PM
Thanks, that worked just fine.

kb2hap
06-01-2005, 10:26 PM
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 Williams
06-01-2005, 10:39 PM
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

Tbag
06-01-2005, 11:33 PM
Thanks, that makes a lot of sense, and thats exactly what happened.

T