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
.
Содержание BASIC Stamp 1
Страница 1: ...BASIC Stamp Programming Manual Version 2 0c...
Страница 30: ...Introduction to the BASIC Stamps Page 28 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 90: ...BUTTON BASIC Stamp Command Reference Page 88 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 118: ...END BASIC Stamp Command Reference Page 116 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 128: ...FREQOUT BASIC Stamp Command Reference Page 126 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 196: ...NAP BASIC Stamp Command Reference Page 194 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 206: ...OWIN BASIC Stamp Command Reference Page 204 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 214: ...OWOUT BASIC Stamp Command Reference Page 212 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 216: ...PAUSE BASIC Stamp Command Reference Page 214 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 226: ...POLLMODE BASIC Stamp Command Reference Page 224 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 232: ...POLLOUT BASIC Stamp Command Reference Page 230 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 236: ...POLLRUN BASIC Stamp Command Reference Page 234 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 240: ...POLLWAIT BASIC Stamp Command Reference Page 238 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 262: ...RCTIME BASIC Stamp Command Reference Page 260 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 274: ...RUN BASIC Stamp Command Reference Page 272 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 310: ...SEROUT BASIC Stamp Command Reference Page 308 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 324: ...STOP BASIC Stamp Command Reference Page 322 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...