Skip to content

Commit

Permalink
ST7789: Add RAMCTRL mentioned in #1040.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jan 15, 2025
1 parent 770d493 commit 8402b24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/st7789/st7789.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace pimoroni {
TEON = 0x35,
MADCTL = 0x36,
COLMOD = 0x3A,
RAMCTRL = 0xB0,
GCTRL = 0xB7,
VCOMS = 0xBB,
LCMCTRL = 0xC0,
Expand Down Expand Up @@ -78,6 +79,7 @@ namespace pimoroni {
command(reg::VDVS, 1, "\x20");
command(reg::PWCTRL1, 2, "\xa4\xa1");
command(reg::FRCTRL2, 1, "\x0f");
command(reg::RAMCTRL, 1, "\x00\xc0");

if(width == 240 && height == 240) {
command(reg::GCTRL, 1, "\x14");
Expand Down

0 comments on commit 8402b24

Please sign in to comment.