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:
Richard 2021-03-17 16:11:00 +01:00 committed by GitHub
parent 107b2dd4ed
commit 453119970c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@
writedata(0x55);
delay(10);
writecommand(ST7789_RAMCTRL);
writedata(0x00);
writedata(0xC0);
//--------------------------------ST7789V Frame rate setting----------------------------------//
writecommand(ST7789_PORCTRL);
writedata(0x0c);