28029 Parallax Inc, 28029 Datasheet - Page 167

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
LCD Display Programming
This LCD initialization routine takes care of the LCD initialization basics, defines
Custom Character 7 to be the ° symbol, then displays static text (text that won't change
while the program is running).
The
previous value. Then it places the cursor at the same starting location and prints the new
value. This prevents ghost characters from appearing when the number of digits in the
value changes, but without the annoying side effects of screen flicker that you would
otherwise get from clearing the display between each measurement.
Example Program: LcdTestCompass.bs2
SEROUT
' LCD Initialization routine
PAUSE 200
SEROUT 14, 84, [22, 12]
PAUSE 5
SEROUT 14, 84, [255,
SEROUT 14, 84, [129, "Heading...",
' LCD Display heading in degrees on top line and x and y
' measurements on the bottom line.
SEROUT 14, 84, [139, "
Free Download! This program is available as a free .bs2 file download from the Smart
Sensors and Applications Product Page at www.parallax.com.
command below places the LCD's cursor, then prints spaces to overwrite the
%01000,
%10100,
%01000,
%00000,
%00000,
%00000,
%00000,
%00000]
149, "x=",
158, "y="]
151, "
160, "
", 151, SDEC X,
", 160, SDEC y]
", 139, DEC angle, 7,
Chapter 4: Hitachi HM55B Compass Module · Page 155
' Debounce power supply
' Turn on & clear LCD
' 5 ms delay for clear cmd
' Define Custom Character 7
'
' *
'
'
'
'
'
'
' Static characters
*
*
*

Related parts for 28029