28029 Parallax Inc, 28029 Datasheet - Page 329

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
Appendix C: Hexadecimal Character Definitions
Lots of LCD application notes and documentation use hexadecimal numbers to instead of
binary numbers to define commands and characters. In PBASIC, printing an exclamation
point is a simple matter of a
Not all programming languages for controllers support native use of printable characters
like that.
exclamation point is used instead. The ASCII code for the exclamation point is 33, and
even in PBASIC, the command
assembly language, hexadecimal values are sometimes the preferred number base
because it makes certain tasks easier. Because of this, lots of LCD documentation lists
their LCD commands as hexadecimal values.
The hexadecimal equivalent of decimal-33 is hexadecimal-21. That's (2 × 16) + 1. You
can use the $ operator to specify that a value is hexadecimal, which would make the
command to display an exclamation point look like this:
Here is an example of a
lower half of the character with black pixels and leaves the upper half white:
SEROUT 14, 84, [250,
Here is an equivalent command using hexadecimal values instead. While it saves a lot of
space, it's still not as easy to understand as defining a custom character with binary
numbers. Be that as it may, you will see PBASIC application programs written this way
from time to time, mainly because of the prevalence of hexadecimal values in LCD
documentation.
SEROUT 14, 84, [250, $00, $00, $00, $00, $1F, $1F, $1F, $1F]
SEROUT 14, 84, ["!"]
In some cases, mostly in assembly language, the ASCII code for the
%00000,
%00000,
%00000,
%00000,
%11111,
%11111,
%11111,
%11111]
SEROUT
SEROUT
SEROUT 14, 84, [33]
command that defines a bar in a bar graph. If fills the
command with an exclamation point in quotes.
'
'
'
'
' * * * * *
' * * * * *
' * * * * *
' * * * * *
Appendix C: Hexadecimal Character Definitions · Page 317
SEROUT 14, 84, [$21]
accomplishes the same task. In
.

Related parts for 28029