Mathieu: Another LCD backpack
From DP
Contents |
Protocol
0x00 reset LCD
i initialize LCD
v version string
c contrast
Requires 3 bytes.
Byte one is the contrast, default 0x24, only that seems to have effect on current LCD.
- VOLCTR - contrast/brightness for EPSON
- B1 - VOLCTR 1 contrast setting
- B2 - VOLCTR 2 internal resistor ratio (no effect)
- SETCON - contrast/brightness for PHILLIPS
- B3 - no effect
b set bounding box
Defines the area of the screen to draw.
| 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| command | x start | y start | x end | y end |
| b (0x62) | 0x00 | 0x00 | 0x64 | 0x64 |
p send page of image data (whole display)
Fill the entire display with the pixel data sent.
- 12bit color
- two pixels packed per 3 bytes
- rrrrgggg|bbbbRRRR|GGGG|BBBB
P send page of image data (bounding box)
Fill the area defined by the last bounding box with the pixel values sent.
t test pattern (whole display)
Cycles colors on the entire display. Any byte exits at the end of the next refresh.
T test pattern (bounding box)
Cycles colors in the area defined by the last bounding box. Any byte exits at the end of the next refresh.
f fill with color
| 0 | 1 | 2 |
|---|---|---|
| command | color byte 1 | color byte 2 |
| f (0x62) | rrrrgggg | bbbb0000 |
