28029 Parallax Inc, 28029 Datasheet - Page 87

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
' Initialize LCD
PAUSE 200
SEROUT 14, 84, [22, 12]
PAUSE 5
DO
'
LOOP
Your Turn - Customizing the Display
The carriage return (
information after the
commands to perform the same operations like this.
This
Notice how the control code 128 places the cursor on Line 0, character 0. Instead of a
control character, 148 places the LCD's cursor on Line 1, character 0.
With this modified
For example, here is a
displays "us" afterwards.
While "us" isn't really the same as "µs" because we are using u instead of the Greek
character mu, most people take its meaning. You can also make a custom character for
mu. This will involve adding a
defines a custom character. Then, you will have to display that custom character where
"u" is currently displayed.
PULSIN 6, 1, x
PULSIN 7, 1, y
SEROUT 14, 84, [128, DEC4 ? X, DEC4 ? Y]
PAUSE 100
DEBUG HOME, DEC4 ? X, DEC4 ? Y
SEROUT
DEBUG HOME, "x = ", DEC4 x, CR, "y = ", DEC4 y
SEROUT 14, 84, [128, "x = ", DEC4 x, 148, "y = ", DEC4 y]
SEROUT 14, 84, [128, "x = ", DEC4 (2 * x), " us",
command displays the same information on the Parallax Serial LCD.
SEROUT
CR
x
) that's built into the
or
SEROUT
y
command, it's easier to display characters after each value.
148, "y = ", DEC4 (2 I y), " us"]
variable values. You can rewrite the
SEROUT
command that multiplies each measurement by 2 and
command to the beginning of the program that
Chapter 3: Tilt with the Memsic Accelerometer · Page 75
?
operator makes it more difficult to display
DEBUG
and
SEROUT
CR

Related parts for 28029