28029 Parallax Inc, 28029 Datasheet - Page 199
28029
Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
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
- Current page: 199 of 340
- Download datasheet (5Mb)
Your Turn - Redrawing the Background without Extra Variables
Keeping track of the old location of the foreground character isn’t always necessary.
Think about it this way: in EepromBackgroundRefresh.bs2 the
old values until you enter new values. By simply rearranging the order in which the
and
Next is a replacement Main Routine you can try in EepromBackgroundRefresh.bs2. As
soon as you press the space bar, your old asterisk disappears. The new asterisk reappears
when you type the second of the two coordinates. As you will see in the next activity,
this technique works really well when the refresh rate is several times per second with tilt
control.
y
√
√
√
√
variables are displayed, you can eliminate the need for
Save EepromBackgroundRefresh.bs2 as
EepromBackgroundRefreshYourTurn.bs2.
Comment out the
Replace the Main Routine in EepromBackgroundRefresh.bs2 with this one.
Test it and examine the change in the program’s behavior.
' -----[ Main Routine ]------------------------------------------------
DO
LOOP
index = (14 * y) + x + 1
READ index, character
DEBUG CRSRXY, x, y, character
DEBUG CRSRXY, 0, 8,
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
"Type X coordinate: "
xOld
and
yOld
variable declarations.
Chapter 5: Accelerometer Gaming Basics · Page 187
' Redisplay background
' Get new coordinates
' Cartesian to DEBUG values
' Display asterisk
' Clear old info
' Wait for user
xOld
x
and
and
y
variables store the
yOld
.
x
Related parts for 28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: