From f85ae69e8898ac62e43700698ce6b9b7f21c5b12 Mon Sep 17 00:00:00 2001 From: Dario Binacchi Date: Wed, 7 Feb 2024 18:15:58 +0100 Subject: [PATCH] nt35510: fix setting of DPRSLCTR register As described in the NT35510 Application Note V0.04, the DPRSLCTR register (Display Resolution Control - B500h) needs to be set to 50h for the 480x800 display resolution. The same patch has already been submitted and merged into the STM32CubeF7 project: https://github.com/STMicroelectronics/STM32CubeF7/pull/112/commits/72e73bbb41ad4df67de9630ba146170beb254124 Fixes: d599a824dfe2 ("Release v1.26.0") Signed-off-by: Dario Binacchi --- Drivers/BSP/Components/nt35510/nt35510.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Drivers/BSP/Components/nt35510/nt35510.c b/Drivers/BSP/Components/nt35510/nt35510.c index c21fedcf6..583334635 100644 --- a/Drivers/BSP/Components/nt35510/nt35510.c +++ b/Drivers/BSP/Components/nt35510/nt35510.c @@ -100,7 +100,7 @@ uint8_t NT35510_Init(uint32_t ColorCoding, uint32_t orientation) const uint8_t nt35510_reg16[] = {0x55, 0xAA, 0x52, 0x08, 0x00, 0xF0}; const uint8_t nt35510_reg17[] = {0xFC, 0x00, 0xB1}; const uint8_t nt35510_reg18[] = {0xB6, 0x03}; - const uint8_t nt35510_reg19[] = {0xB5, 0x51}; + const uint8_t nt35510_reg19[] = {0xB5, 0x50}; const uint8_t nt35510_reg20[] = {0x00, 0x00, 0xB7}; const uint8_t nt35510_reg21[] = {0x01, 0x02, 0x02, 0x02, 0xB8}; const uint8_t nt35510_reg22[] = {0x00, 0x00, 0x00, 0xBC};