122-28029 Parallax Inc, 122-28029 Datasheet - Page 37

GUIDE STUDENT SMART SENSORS

122-28029

Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet

Specifications of 122-28029

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Smart Sensors
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
LOOP
ACTIVITY #5: SCROLLING TEXT ACROSS THE DISPLAY
If your message is too wide for the 16 character display, scrolling the text across the
display can make it work. Figure 1-18 shows an example. With scrolling, the message
begins at the far right of the display. Then, the text shifts across the display one letter at a
time.
The scrolling code introduced in this activity is quite different from the example program
in Activity #2 that made "Line 1" move across the display. The main reason it's different
is because the message in Activity #2 stopped at the leftmost character. When the
' Backspace, Custom Character 1, backspace, Custom Character 2, etc.
' optional Pace argument of 100 sends each value every 1/10 of a second.
SEROUT 14, 84, 100, [8, 1, 8, 2, 8, 3, 8, 4, 8, 5, 8, 6, 8, 7, 8]
PAUSE 750
Try it!
Even though the LCD only stores 8 custom characters at a time, your program can
store as many as you need. Remember, your program can redefine any of the custom
characters at any time. If your application needs twenty custom characters, your PBASIC
program can store 20 custom characters and redefine them for the LCD as needed.
You can display the hourglass with just one custom character. The entire hourglass
animation can be done with just one custom character. The trick is to redefine the custom
character between each time the display is updated.
Chapter 1: Parallax Serial LCD Display · Page 25
Figure 1-18
Scrolling Text

Related parts for 122-28029