summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-25 15:23:06 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-25 15:23:06 +1000
commitc00e7e37d9aae6354f2a3d0c5768ef96f294b81b (patch)
treefdc325ce19bd8b1fd00763a633dc44038fe0f913
parent7ffeea4009357cbeed616d4236d57fd4dde12ba8 (diff)
downloadtangara-fw-c00e7e37d9aae6354f2a3d0c5768ef96f294b81b.tar.gz
Fix incorrect palette introduced by hardware screen rotation
-rw-r--r--src/drivers/display_init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/display_init.cpp b/src/drivers/display_init.cpp
index f1e94d9a..833ea6a4 100644
--- a/src/drivers/display_init.cpp
+++ b/src/drivers/display_init.cpp
@@ -51,7 +51,7 @@ static const uint8_t kST7735RCommonHeader[]{
0x0E,
ST77XX_INVOFF, 0, // 13: Don't invert display, no args
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:
0x05
};