28029 Parallax Inc, 28029 Datasheet - Page 280

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
Page 268 · Smart Sensors and Applications
SEROUT LcdPin, T9600, [LcdOn, LcdCls]
PAUSE 5
custChar = 2
line = Line0
' -----[ Main Routine ]-------------------------------------------------------
DO
LOOP
' -----[ Subroutine - Def_Cust_Char ]-----------------------------------------
' This subroutine defines one of the LCD's eight custom characters.
' charBase variable equal to one of the Symbol name that precedes the
' custom character's DATA directive.
' between 0 and 7 to select one of the LCD's eight custom characters.
Def_Cust_Char:
' -----[ Subroutines - Disp_Cust_Char ]---------------------------------------
' This subroutine displays a custom character.
' be set to either Line0 or Line1, and the cursor variable can be set
' to a value between 0 and 15.
' LCD's custom characters and should be set to a value between 0 and 7.
Disp_Cust_Char:
FOR charBase = Char0 TO Char14 STEP 8
NEXT
PAUSE 1000
SEROUT LcdPin, T9600,
FOR index = 0 TO 7
NEXT
RETURN
SEROUT LcdPin, T9600,
RETURN
GOSUB Def_Cust_Char
cursor = 7
GOSUB Disp_Cust_Char
PAUSE 200 '- charBase
READ charBase + index, dotLine
SEROUT LcdPin, T9600, [dotLine]
[Define + custChar]
[line + cursor, custChar]
The custChar variable selects one of the
Set
the custChar variable to a value
' Initialize LCD
' 5 ms delay for clearing display
' Select Custom Character 2
' BarGraph on Line 0.
' Main loop
' Go through 10 custom characters
' Define the chracter
' Place the cursor
' Print the character
' charbase bigger - pause smaller
' Repeat FOR charbase...
' Pause 1 second
' Repeat main loop
' Define custom character
' 7 bytes, define 7 dotted lines
' Get byte for dotted line
' Send it to the LCD
' Print custom character
The line variable can
Set the

Related parts for 28029