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
This commit is contained in:
parent
107b2dd4ed
commit
453119970c
|
|
@ -25,6 +25,9 @@
|
|||
writedata(0x55);
|
||||
delay(10);
|
||||
|
||||
writecommand(ST7789_RAMCTRL);
|
||||
writedata(0x00);
|
||||
writedata(0xC0);
|
||||
//--------------------------------ST7789V Frame rate setting----------------------------------//
|
||||
writecommand(ST7789_PORCTRL);
|
||||
writedata(0x0c);
|
||||
|
|
|
|||
Loading…
Reference in New Issue