28029 Parallax Inc, 28029 Datasheet - Page 182

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
Page 170 · Smart Sensors and Applications
DEBUG CLS,
"0123456789X", CR,
"1
"2
"3
"4
"5
"Y
DO
LOOP
Your Turn – Keeping Characters in the Plot Area
If you type the digit 8 in response to the prompt
overwrite your text.
coordinates. The asterisk is plotted over the text that shows which row and column
CRSRXY
the statement
problem for the maximum X coordinate, since it is limited to a value from 0 to 9. So, all
you’ll need to clamp the X value is
DEBUG "Type X coordinate: "
DEBUGIN DEC1 x
DEBUG CR, "Type Y coordinate: "
DEBUGIN DEC1 y
DEBUG CRSRXY, x, y, "*"
DEBUG CRSRXY, 0, 10, "Press any key..."
DEBUGIN temp
DEBUG CRSRXY, 0, 8, CLRDN
is plotting. One way to fix this is with the
Try entering out-of-bounds values for the Y coordinate (0 and 6 to 9) and 0 for
the X coordinate.
Observe the effects on the display’s background.
Modify CrsrxyPlot.bs2 as shown here and try it again
DEBUG CR, "Type Y coordinate: "
DEBUGIN DEC1 y
Y = y MAX 5 MIN 1
X = x MIN 1
DEBUG CRSRXY, x, y, "*"
", CR,
", CR,
", CR,
", CR,
", CR,
", CR, CR
y = y MAX 5 MIN 1
Similar problems occur if you type 0 for either the X or Y
x = x MIN 1
. The
DEBUGIN
' <--- Add
' <--- Add
.
command’s
MAX
"Type Y coordinate: "
and
MIN
DEC1
operators. Simply add
operator solves this
, it will

Related parts for 28029