Modern Device LCD117/Serial LCD Driver Commands
A popular display chip
seems to be LCD117 and is a 9600 baud chip that is recommended
for PICAXE which are capable of 9600 and/or 2400 bps serial transmission.
Some of the following commands are CASE Sensitive and may require a pause.
Command / Comments |
Suggested Pause |
Example |
|
Send Text |
SerTxD ("Hello World!"); |
||
?a |
Home Cursor |
SerTxD ("?a"); |
|
?b |
Destructive Backspace |
SerTxD ("?b"); // backspace |
|
?c# |
Set Cursor Style: 0= none 2= blinking 3=underline |
SerTxD ("?c0"); // turn cursor off |
|
?f |
Clear Screen |
SerTxD ("?f"); |
|
?g |
Beep (requires speaker on pin 6) |
SerTxD ("?g"); |
|
?h |
Backup Cursor (Non-destructive backspace) |
SerTxD ("?h"); |
|
?i |
Forward cursor |
SerTxD ("?i"); |
|
?j |
Up cursor |
SerTxD ("?j"); |
|
?k |
Down cursor |
SerTxD ("?k"); |
|
?l |
Clear cursor line |
SerTxD ("?l"); |
|
?m |
Carriage Return |
SerTxD ("?m"); |
|
?n |
CRLF, carriage return & line feed, |
SerTxD ("?n"); |
|
?s# |
Set tabs at # spaces |
100 ms |
SerTxD ("?s7"); |
?t |
Tab, advance one tab position |
SerTxD ("?t"); |
|
?x## |
Position cursor on x column, (two characters
are required), first column is column 0 |
SerTxD ("?x09"); |
|
?y# |
Position cursor at y row, first row
is row 0, |
SerTxD ("?y3"); |
|
?? |
Display a "?" |
SerTxD ("??"); |
|
?! |
Send direct command to LCD |
SerTxD ("?!01"); |
|
?B |
Backlight Intensity – sets PWM value, two hex digits req. (00 to FF) |
100 ms |
SerTxD ("?BFF"); |
?D# |
Define Character "?D#1A001A001A001A00"
D# = character |
100 ms |
SerTxD ("?D31F001F001F001F00"); |
?# |
Print a custom character |
5 ms |
SerTxD ("?3); |
?H |
High output on auxiliary digital pins: valid numbers are 4,5,6 |
SerTxD ("?H4"); |
|
?L |
Low output on auxiliary digital pins: valid numbers are 4,5,6 |
SerTxD ("?L4"); // aux pin 4 LOW |
|
?G |
Configure for LCD geometry. Supported
formats: |
SerTxD ("?G216"); |
|
Ganging up commands is OK, except for commands requiring a following pause |
SerTxD ("?x01?y1?fHello World"); |
||
Enhanced Commands |
|||
?># |
Enter BIG Number Mode (numbers only!) "?>3" X # = 3 or 4 , # represents number of characters displayed. (20x4 LCD's only) |
100 ms |
SerTxD ("?>4"); |
?< |
Exit BIG number mode "?<" |
SerTxD ("?<"); |
|
?C# |
Define custom boot screen line # = 0 - 3 |
100 ms |
SerTxD ("?C0abcdefghijklmnopqrst") |
?S# |
"?S0" -
display no screen on boot. |
SerTxD ("?S2); // custom boot screen |
|
?* | display boot screen at any time | SerTxD ("?*); // show boot screen |
Copyright © 2008-2015 Ted J. Mieske
All Rights Reserved.