BASIC stamp manual v2.2

BASIC Stamp Command Reference
Page 128 BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com
POWER CONTROL
NAP Nap for a short period. Power consumption is
reduced.
SLEEP Sleep for 1-65535 seconds. Power consumption is
reduced.
END Sleep until the power cycles or the PC connects.
Power consumption is reduced.
PROGRAM DEBUGGING
DEBUG Send information to the PC for viewing in the
Debug Terminal’s Receive windowpane.
DEBUGIN
2.5
Retrieve information from the user via the PC,
entered into the Debug Terminal’s Transmit
windowpane.
SYNTAX CONVENTIONS
BOLD UPPER CASE – any word that appears bold with all capital letters must
be typed exactly as shown. These are all reserved words.
Italics italicized words must be replaced with your content.
[ ] – square brackets must be typed, in the position shown around the
given syntax element. Only used with PBASIC 2.0 and 2.5.
( ) – parentheses must be typed in the position shown around the given
syntax element; only used this way with PBASIC 1.0.**
{ } – curly braces indicate optional syntax items. They are not typed as part
of any syntax other than compiler directives.
| – vertical line separates mutually exclusive syntax elements.
, \ # = – where they appear, commas, backslashes, pound signs, and
equal signs must be typed in the positions shown.
**NOTE: You may use parentheses to enclose expressions in PBASIC 2.0 and 2.5, but they
are not necessary. Used within an expression, parentheses will change the order of
evaluation. See page 103 for details and examples.
All
2
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2