28029 Parallax Inc, 28029 Datasheet - Page 198

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 186 · Smart Sensors and Applications
temp
index
character
' -----[ EEPROM Data ]-----------------------------------------------------
DATA CLS,
"
"
"
"------+------", CR,
"-3-2-1| 1 2 3", CR,
"
"
' -----[ Initialization ]--------------------------------------------------
FOR index = 0 TO 99
NEXT
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
READ index, character
DEBUG character
xOld = x
yOld = y
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, "*"
IF (x <> xold) AND (y <> yold) THEN
ENDIF
DEBUG CRSRXY, 0, 10, "Press any Key..."
DEBUGIN temp
DEBUG CRSRXY, 0, 8, CLRDN
index = (14 * yOld) + xOld + 1
READ index, character
DEBUG CRSRXY, xOld, yOld, character
-2|
-3|
3|
2|
1|
", CR,
", CR,
", CR,
", CR,
", CR, CR
VAR
VAR
VAR
Byte
Byte
Byte
' 14
' 28
' 42
' 56
' 70
' 84
' 98 + 1 = 99
' Dummy variable for DEBUGIN
' READ index/character storage
' Background data
' Display background
' Store previous coordinates
' Get new coordinates
' Cartesian to DEBUG values
' Display asterisk
' Check if asterisk moved
' Background character address
' Get background character
' Display background character
' Wait for user
' Clear old info

Related parts for 28029