28029 Parallax Inc, 28029 Datasheet - Page 185

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
DEBUG CLS,
"
"
"
"------+------", CR,
"-3-2-1| 1 2 3", CR,
"
"
DO
LOOP
Your Turn – More Keeping Characters in the Plot Area
The
outside the display area. You can also use
out of bounds. Here is an example of how you can modify PlotXYGraph.bs2 with
IF…THEN
boundaries, this program just waits until a correct value is entered.
Modify PlotXYGraph.bs2 by replacing the
DEBUG "Type X coordinate: "
DEBUGIN SDEC1 x
DEBUG CR, "Type Y coordinate: "
DEBUGIN SDEC1 y
x = (x * 2) + 6
y = 3 - y
DEBUG CRSRXY, x, y, "*"
DEBUG CRSRXY, 0, 10, "Press any Key..."
DEBUGIN temp
DEBUG CRSRXY, 0, 8, CLRDN
MAX
-2|
-3|
3|
2|
1|
x = (x * 2) + 6
y = 3 – y
IF (x > 12) OR (y > 6) THEN
ELSE
. Instead of clipping the values and placing the asterisk within the allowed
and
DEBUG CRSRXY, 0, 8, CLRDN,
the
MIN
", CR,
", CR,
", CR,
", CR,
", CR, CR
IF
"Enter values from -3 to 3.", CR, '
"Try again"
operators were introduced earlier to prevent the asterisk from appearing
...
THEN
...
ELSE
...
ENDIF
block shown below, and then run it.
DEBUG CRSRXY, x, y, "*"
IF…THEN
Chapter 5: Accelerometer Gaming Basics · Page 173
statements to handle values that are
' <--- Add code from here...
'
'
'
'
'
instruction with

Related parts for 28029