28029 Parallax Inc, 28029 Datasheet - Page 39

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
The next example program also has variables you can set to configure different window
locations, widths, and increments. After setting these variable values, you can then call
the
a code block that makes the subroutine display all the characters between the
and
The beginning and ending EEPROM addresses are stored in the
messageEnd
window are stored in
variable is set to the number of characters the text moves each time it shifts. With all
those values set, the
There are three more examples in the next program's Main Routine. Not all the examples
assign values to all the variables. Some of the examples only set a few values because
they are recycling values that were assigned before the previous subroutine call. For
example, the value of the
Since the
value 1 doesn't need to be reassigned to it before calling the
again.
Here is the last example in the Main Routine. Note that it takes up the better part of the
second line and scrolls two characters at a time:
Scroll_Message
Message2
messageStart = Message1:
windowLeft
increment
GOSUB Scroll_Message
' Change the values of various configuration variables
' and demonstrate the effect on the display with each change.
windowLeft
GOSUB Scroll_Message
messageStart = Message3:
windowLeft
increment
GOSUB Scroll_Message
Scroll_Message
variables. The starting and ending LCD character addresses that define the
labels in the middle four characters on the LCD's top line.
Scroll_Message
windowLeft
subroutine, and it does the rest of the work. Here is an example of
= 134:
= 1
= 131:
= 150:
= 2
increment
subroutine doesn't make any changes to that variable, the
and
variable was set to 1 before the first subroutine call.
messageEnd
windowRight = 137
windowRight = 140
messageEnd
windowRight = 161
subroutine has all it needs to do its job.
windowRight
Chapter 1: Parallax Serial LCD Display · Page 27
= message2
= message4
. Last but not least, the
Scroll_Message
messageStart
increment
subroutine
Message1
and

Related parts for 28029