From 453119970c06f233fbdf08f22d470391aa886673 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 17 Mar 2021 16:11:00 +0100 Subject: [PATCH] Update ST7789_Init.h added ST7789_RAMCTRL setting otherwise the default value of the second parameter, 0xF0, causes LSB of green being copied to LSB of red and blue in 16 Bit color mode, making every uneven green value grayish --- TFT_Drivers/ST7789_Init.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TFT_Drivers/ST7789_Init.h b/TFT_Drivers/ST7789_Init.h index f2683e4..18c7061 100644 --- a/TFT_Drivers/ST7789_Init.h +++ b/TFT_Drivers/ST7789_Init.h @@ -25,6 +25,9 @@ writedata(0x55); delay(10); + writecommand(ST7789_RAMCTRL); + writedata(0x00); + writedata(0xC0); //--------------------------------ST7789V Frame rate setting----------------------------------// writecommand(ST7789_PORCTRL); writedata(0x0c);