Skip to content

Commit 7491ced

Browse files
authored
Merge pull request #767 from pimoroni/1.14_lcd_improved
Display initialisation fixes for the Pico Display Pack 1.14" LCD
2 parents a59aa35 + 1dcad21 commit 7491ced

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/st7789/st7789.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ namespace pimoroni {
9494
command(reg::GMCTRN1, 14, "\xD0\x08\x10\x08\x06\x06\x39\x44\x51\x0B\x16\x14\x2F\x31");
9595
}
9696

97+
if(width == 240 && height == 135) { // Pico Display Pack (1.14" 240x135)
98+
command(reg::VRHS, 1, "\x00"); // VRH Voltage setting
99+
command(reg::GCTRL, 1, "\x75"); // VGH and VGL voltages
100+
command(reg::VCOMS, 1, "\x3D"); // VCOM voltage
101+
command(0xd6, 1, "\xa1"); // ???
102+
command(reg::GMCTRP1, 14, "\x70\x04\x08\x09\x09\x05\x2A\x33\x41\x07\x13\x13\x29\x2f");
103+
command(reg::GMCTRN1, 14, "\x70\x03\x09\x0A\x09\x06\x2B\x34\x41\x07\x12\x14\x28\x2E");
104+
}
105+
97106
command(reg::INVON); // set inversion mode
98107
command(reg::SLPOUT); // leave sleep mode
99108
command(reg::DISPON); // turn display on

0 commit comments

Comments
 (0)