diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-22 17:06:37 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-22 21:19:19 +1000 |
| commit | 972edd746865c3852538be822aa07ab4b5762401 (patch) | |
| tree | fcda5f5cd35ed576b26182f57a298da556c7eb00 /src/drivers/display_init.cpp | |
| parent | b192975cb1eeb4e6b7c7bf53cdf42701c55f034a (diff) | |
| download | tangara-fw-972edd746865c3852538be822aa07ab4b5762401.tar.gz | |
Rotate the display in hardware instead of software
Diffstat (limited to 'src/drivers/display_init.cpp')
| -rw-r--r-- | src/drivers/display_init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/display_init.cpp b/src/drivers/display_init.cpp index c7eb5789..f1e94d9a 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: - 0xC0, // row/col addr, bottom-top refresh + 0xA8, // row/col addr, bottom-top refresh ST77XX_COLMOD, 1, // 15: set color mode, 1 arg, no delay: 0x05 }; |
