28029 Parallax Inc, 28029 Datasheet - Page 291

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
Overprinting any black characters to the right of the character displayed in step 2 does
not involve any custom characters since the space character " " does a good job of erasing
things. For most cases, a
everything to the right. However, there are some special circumstances that occur when
the 15th character has one or more black columns. If
program will print a blank character in position-0. Position-0 should be black, so the
ELSEIF value = 80
charCnt
Your Turn - Graphically Display Ping))) Sensor Distance
Displaying a horizontal bar graph that indicates up to 80 cm is easy with the Ping)))
sensor and the Parallax Serial LCD.
PingMeasureCm.bs2,
HorizBarGraph.bs2.
Def_Horiz_Bar_Char:
Follow the instructions for connecting the Ping))) sensor and the Serial LCD to
your board. They're in Chapter 2, Activity #4, page 51.
is 14, a single empty character has to be printed in position 15.
SEROUT LcdPin, T9600,
FOR index = 0 TO 7
NEXT
RETURN
' Print over everything to the right with spaces.
IF charCnt + 1 < 15 THEN
ELSEIF value = 80 THEN
ELSEIF charCnt = 14 THEN
ENDIF
RETURN
SEROUT LcdPin, T9600, [dotLine] ' Send it to the LCD
FOR cursor = (charCnt + 1) TO 15
NEXT
SEROUT LcdPin, T9600,
SEROUT LcdPin, T9600, [Line0 + 15, " "]
SEROUT LcdPin, T9600,
[Define + custChar]
[Line0 + cursor, 3]
code block replaces that blank character with a black one. Also, if
[Line0 + cursor, " "]
and
FOR
incorporate
...
NEXT
loop printing from
Chapter 7: LCD Bar Graphs for Distance and Tilt · Page 279
them
The trick is to take components from
' Define custom character
' 7 bytes, define 7 dotted lines
' Partial char left of char 15?
' Fill to right with " "
' Special case: value = 80
' Special case: 75 <= value <= 80
into
value = 80
(charCnt + 1) TO 15
a
copy
, an earlier part of the
of
this
activity's
clears

Related parts for 28029