28029 Parallax Inc, 28029 Datasheet - Page 193

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
more flexible because you can also fetch and display individual characters as needed to
refresh the background.
Example Program – EepromBackgroundDisplay.bs2
' Smart Sensors and Applications - EepromBackgroundDisplay.bs2
'
'{$STAMP BS2}
'{$PBASIC 2.5}
index
character
DATA CLS,
"
"
"
"------+------", CR,
"-3-2-1| 1 2 3", CR,
"
"
FOR index = 0 TO 99
NEXT
END
Your Turn – Viewing the EEPROM Characters
READ index, character
DEBUG character
-2|
-3|
3|
2|
1|
FOR index = 0 TO 99
NEXT
Enter, save, and run the program.
Verify that the display is the same as PlotXyGraph.bs2.
In the BASIC Stamp Editor, click Run and select Memory Map.
Click the Display ASCII box in the lower left corner of the Memory Map
window.
The digits, dashes, and vertical bars should appear in the EEPROM Map exactly
as shown in Figure 5-8.
READ index, character
DEBUG character
", CR,
", CR,
", CR,
", CR,
", CR, CR
VAR
VAR
Byte
Byte
' 0
' 14
' 28
' 42
' 56
' 70
' 84
' 98 + 1 = 99
Chapter 5: Accelerometer Gaming Basics · Page 181
' Stamp & PBASIC Directives
' Variables
' Store background in EEPROM
' Retrieve and display background

Related parts for 28029