128 x 64 LCD Display Terminal
SOH ETX Serial Protocol Features
| Command | Specification | In Out |
|---|---|---|
|
<SOH> "P" {Row 0-7 in Two Digit ASCII Hex} {Starting Column 0-127(00h-7Fh) in Two Digit ASCII Hex} {Font 0-3 in Single Digit ASCII Hex} Small 5 x 8(.151" Character height) Large 9 x 16(.302" Character height) Micro 4 x 5(Caps Only)(.094" Character height) Giant #'s 30 x 56(#'s Only)(.105" Character height) {Type 1, 2, 4, 8, 16, 32(00h-3Fh) in Two Digit ASCII Hex} Normal Inverted Underlined Outlined {Justification 0, 1, 2, 3 in Single Digit ASCII Hex } Left Center Right Absolute {Up to 25 characters of text to be displayed} <ETX> Example: <SOH>P0000010 TEST<ETX> would
print TEST on row 0, column 0, with a 5x7 font |
I | |
| Clear |
<SOH> "C" {Row 0-7 in Two Digit ASCII Hex} {Starting Column 0-127(00h-7Fh) in Two Digit ASCII Hex} {Ending Column 0-127(00h-7Fh) in Two Digit ASCII Hex} <ETX> Example: <SOH>C0007F <ETX> would clear Row 0 from column 0 to column 127 |
I |
| Graphic |
<SOH> "G" {Row 0-255 in Two Digit ASCII Hex(Bit Mask, with line0 being LSB)} {Starting Column 0-127(00h-7Fh) in Two Digit ASCII Hex} {Data 0-255(00h-FFh) in Two Digit ASCII Hex} <ETX> Example: <SOH>G0100 001FF<ETX> would draw a vertical line on row 0, 8 bits high |
I |
| Horizontal Load(Bitmap) |
<SOH> "H" {Row 0-255 in Two Digit ASCII Hex(Bit Mask, with line0 being LSB)} {Starting Column 0-127(00h-7Fh) in Two Digit ASCII Hex} {Length of Data 0-127(00h-7Fh) in Two Digit ASCII Hex} {Data 0-255(00h-FFh) in Two Digit ASCII Hex} <ETX> Example: <SOH>H010000xxxx.... <ETX> would display bitmap data on the upper row |
I |
| Line |
<SOH> "L" {X Start0-255 in Two Digit ASCII Hex} {Y Start 0-255 in Two Digit ASCII Hex} {X End 0-255 in Two Digit ASCII Hex} {Y End 0-255 in Two Digit ASCII Hex} {Color 0-15 in Single Digit ASCII Hex} <ETX> Example: <SOH>L00007F3F1 <ETX> would draw a diagonal line on the display |
I |
| Box |
<SOH> "B" {Upper Left X 0-255 in Two Digit ASCII Hex} {Upper Left Y 0-255 in Two Digit ASCII Hex} {Bottom Right X 0-255 in Two Digit ASCII Hex} {Bottom Right Y 0-255 in Two Digit ASCII Hex} {Color 0-15 in Single Digit ASCII Hex} <ETX> Example: <SOH>B00007F3F1<ETX> would draw a box around the display |
I |
| Pixel |
<SOH> "X" {X 0-255 in Two Digit ASCII Hex} {Y 0-255 in Two Digit ASCII Hex} {Color 0-15 in Single Digit ASCII Hex} <ETX> Example: <SOH>X3F1F1<ETX> would draw a circle in the middle of the display |
I |
| Circle |
<SOH> "l" {X 0-255 in Two Digit ASCII Hex} {Y 0-255 in Two Digit ASCII Hex} {Radius 0-255 in Two Digit ASCII Hex} {Color 0-15 in Single Digit ASCII Hex} <ETX> Example: <SOH>l3F1F101<ETX> would draw a circle in the middle of the display |
I |
| Tone |
<SOH> "T" {Frequency 0-4095Hz (00-FFF) in Three Digit ASCII Hex} {Duration 0-255 Seconds/50 (00-FF) in Two Digit ASCII Hex} <ETX> Example: <SOH>T01A32 <ETX> would play a tone of 26Hz, for 50 Fiftieths(1 Second) |
I |
| Keystroke |
<SOH> "K" {Two Digit ASCII Hex keycode} <ETX> Example: <SOH>K30<ETX> would be sent when key zero is pressed |
O |
| Reset |
<SOH> "R" {Transmitted on Display power up, to let host know display was reset} <ETX> Example: <SOH>R<ETX> would be sent when key zero is pressed |
O |