2: Quick Start Guide
BASIC Stamp Programming Manual 2.0c
•
www.parallaxinc.com
•
Page 31
5) Enter the following two lines of PBASIC code in the editor window
(change the "BS2" to the proper name of your module, as indicated
below):
' { $STAMP BS2 }
DEBUG "Hello World!"
a) Note: The above code is written for a BASIC Stamp 2. Change the
"BS2" in the first line to BS1, BS2e, BS2sx or BS2p depending on the
model of the BASIC Stamp you are using. Failure to do this may
cause the editor to fail to recognize your BASIC Stamp during the
next step.
6) Download the program you just typed in to the BASIC Stamp. If
using the DOS software, press ALT-R to download. If using the
Windows software, press CTRL-R to download.
a) If the program is typed in correctly (and the BASIC Stamp is
connected properly) a progress bar window should appear
(perhaps very briefly) showing the download progress.
Afterwards a debug window should appear and display "Hello
World!"
b) If there is a syntax error in the program, the editor will highlight
the text in question and display an error message. Review the
error, fix the code and then try downloading again.
c) If the error reported a connection problem with the BASIC Stamp,
make sure the first line of code indicates the proper module name
and verify the programming cable connections, module
orientation (in the socket) and that it is properly powered, then try
downloading again.
7) Congratulations! You've just written and downloaded your first
BASIC Stamp program! The "Hello World!" text that appeared on the
screen was sent from the BASIC Stamp, back up the programming
cable, to the PC.
Summary of Contents for BASIC Stamp 2e
Page 1: ...BASIC Stamp Programming Manual Version 2 0c...
Page 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...