Using the BASIC Stamp Editor
Page 36
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.com
in your code, the editor may try to program another model of the BASIC
Stamp, which may lead to some confusing error messages.
The STAMP directive is a special command that should be included
(usually near the top) in a program to indicate the model of BASIC Stamp
targeted. The line below is an example of the STAMP directive (in this
case, it indicates that the program is intended for a BASIC Stamp 2):
‘ { $STAMP BS2 }
This line should be entered into your code, usually near the top, on a line
by itself. Note that the directive appears on a comment line (the
apostrophe (‘) indicates this) for compatibility with the DOS versions of
the editor.
The 'BS2' in the example above should be changed to indicate the
appropriate model of the BASIC Stamp you are using. For example, to use
the BS2e, BS2sx or BS2p, enter one of the following lines into your code,
respectively.
‘ { $STAMP BS2e } 'This indicates to use the BASIC Stamp 2e
‘ { $STAMP BS2sx } 'This indicates to use the BASIC Stamp 2sx
‘ { $STAMP BS2p } 'This indicates to use the BASIC Stamp 2p
The directive itself must be enclosed in brackets, {…}. There should not be
any spaces between the dollar sign, $, and the word STAMP, however, the
directive may contain additional spaces in certain other areas. For
example:
F
ORMAT OF THE
STAMP
DIRECTIVE
.
I
NDICATING DIFFERENT
BASIC S
TAMP
MODELS
.
E
XTRA SPACES ARE ALLOWED IN
CERTAIN AREAS
.
Summary of Contents for BASIC Stamp 1
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...