28029 Parallax Inc, 28029 Datasheet - Page 41

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
' Configuration variables for Scroll_Message subroutine.
increment
windowRight
windowLeft
messageStart
messageEnd
' -----[ Initialization ]-----------------------------------------------------
SEROUT LcdPin, T9600, [LcdOn, LcdCls]
PAUSE 5
' -----[ Main Routine ]-------------------------------------------------------
' Set values of configuration variables, then call Scroll_Message.
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 = Message1:
GOSUB Scroll_Message
messageStart = Message3:
windowLeft
increment
GOSUB Scroll_Message
END
' -----[ Subroutine - Scroll_Message ]----------------------------------------
Scroll_Message:
cursorStart = windowRight - increment + 1
head = 0
tail = increment - 1
' Scrolling loop
DO WHILE tail<(MessageEnd-MessageStart)+(windowRight-windowLeft+increment)
SEROUT LcdPin, T9600, [cursorStart]
FOR pointer = head TO tail
= 134:
= 1
= 131:
= 150:
= 2
VAR
VAR
VAR
VAR
VAR
Nib
Byte
Byte
Byte
Byte
messageEnd
windowRight = 137
windowRight = 140
messageEnd
messageEnd
windowRight = 161
= message2
= message3
= message4
Chapter 1: Parallax Serial LCD Display · Page 29
' Turn on display & clear
' Characters to shift
' Rightmost character address
' Leftmost character address
' Start EEPROM address
' End EEPROM address
' Delay 5 ms
' Rightmost character in window
' Clear old characters.
' Rightmost character in window
' Initialize head and tail
' of message

Related parts for 28029