ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 12.06.2025
Просмотров: 8321
Скачиваний: 1
© MCS Electronics, 1995-2007 |
||
Home Upper |
'select line 1 and |
|
return home |
'replace the text |
|
Lcd "Replaced." |
||
Wait 1 |
'wait a moment |
|
Cursor Off Noblink |
'hide cursor |
|
Wait 1 |
'wait a moment |
|
Cursor On Blink |
'show cursor |
|
Wait 1 |
'wait a moment |
|
Display Off |
'turn display off |
|
Wait 1 |
'wait a moment |
|
Display On |
'turn display on |
|
'-----------------NEW support for 4-line LCD------ |
||
Thirdline |
||
Lcd "Line 3" |
||
Fourthline |
||
Lcd "Line 4" |
'goto home on line |
|
Home Third |
||
three |
||
Home Fourth |
'first letteer |
|
Home F |
||
also works |
||
Locate 4 , 1 : Lcd "Line 4" |
||
Wait 1 |
||
'Now lets build a special character |
||
'the first number is the characternumber (0-7) |
||
'The other numbers are the rowvalues |
||
'Use the LCD tool to insert this line |
||
Deflcdchar 1 , 225 , 227 , 226 , 226 , 226 , 242 , 234 , 228 |
' replace ? |
|
with number (0-7) |
' replace ? |
|
Deflcdchar 0 , 240 , 224 , 224 , 255 , 254 , 252 , 248 , 240 |
||
with number (0-7) |
'select data RAM |
|
Cls |
||
Rem it is important that a CLS is following the deflcdchar statements because
it will set the controller back in datamode |
'print the special |
Lcd Chr(0) ; Chr(1) |
|
character |
|
'----------------- Now use an internal routine ------------ |
'value into ACC |
_temp1 = 1 |
|
!rCall _write_lcd |
'put it on LCD |
End |
LCDAT
Action
Send constant or variable to a SED or other graphicaldisplay.
Syntax
LCDAT y , x , var [ , inv]
LCDAT y , x , var [ , FG, BG]
Remarks
X |
X location. In the range from 0-63. The SED displays columns |
page -546- |