Fix incorrect palette introduced by hardware screen rotation

custom
jacqueline 2 years ago
parent 7ffeea4009
commit c00e7e37d9
  1. 2
      src/drivers/display_init.cpp

@ -51,7 +51,7 @@ static const uint8_t kST7735RCommonHeader[]{
0x0E, 0x0E,
ST77XX_INVOFF, 0, // 13: Don't invert display, no args ST77XX_INVOFF, 0, // 13: Don't invert display, no args
ST77XX_MADCTL, 1, // 14: Mem access ctl (directions), 1 arg: ST77XX_MADCTL, 1, // 14: Mem access ctl (directions), 1 arg:
0xA8, // row/col addr, bottom-top refresh 0xA0, // row/col addr, bottom-top refresh
ST77XX_COLMOD, 1, // 15: set color mode, 1 arg, no delay: ST77XX_COLMOD, 1, // 15: set color mode, 1 arg, no delay:
0x05 0x05
}; };

Loading…
Cancel
Save