Init lcd to RGB to match lvgl library color order
This commit is contained in:
parent
86788a0fb6
commit
f09e5aad47
1 changed files with 3 additions and 3 deletions
|
@ -196,11 +196,11 @@ static void st7735s_set_orientation(uint8_t orientation)
|
||||||
assert(orientation < 4);
|
assert(orientation < 4);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Portrait: 0xC8 = ST77XX_MADCTL_MX | ST77XX_MADCTL_MY | ST77XX_MADCTL_BGR
|
Portrait: 0xC8 = ST77XX_MADCTL_MX | ST77XX_MADCTL_MY | ST77XX_MADCTL_RGB
|
||||||
Landscape: 0xA8 = ST77XX_MADCTL_MY | ST77XX_MADCTL_MV | ST77XX_MADCTL_BGR
|
Landscape: 0xA8 = ST77XX_MADCTL_MY | ST77XX_MADCTL_MV | ST77XX_MADCTL_RGB
|
||||||
Remark: "inverted" is ignored here
|
Remark: "inverted" is ignored here
|
||||||
*/
|
*/
|
||||||
uint8_t data[] = {0xC8, 0xC8, 0xA8, 0xA8};
|
uint8_t data[] = {0xC0, 0xC0, 0xA8, 0xA8};
|
||||||
|
|
||||||
#if (LV_USE_LOG == 1)
|
#if (LV_USE_LOG == 1)
|
||||||
const char *orientation_str[] = {
|
const char *orientation_str[] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue