STM32Cube BSP FW for STM32F769I-Discovery
Dependents: mbed-os-example-blinky-5 DISCO-F769NI_TOUCHSCREEN_demo_custom_1 Datarecorder2 DISCO-F769NI_TOUCHSCREEN_demo ... more
Diff: Drivers/BSP/Components/otm8009a/otm8009a.c
- Revision:
- 4:72a949940ad6
- Parent:
- 0:c0f3bbab73d2
--- a/Drivers/BSP/Components/otm8009a/otm8009a.c Thu Jul 06 16:48:52 2017 +0200 +++ b/Drivers/BSP/Components/otm8009a/otm8009a.c Fri Nov 15 11:20:11 2019 +0100 @@ -2,14 +2,12 @@ ****************************************************************************** * @file otm8009a.c * @author MCD Application Team - * @version V1.0.1 - * @date 04-August-2016 * @brief This file provides the LCD Driver for KoD KM-040TMP-02-0621 (WVGA) * DSI LCD Display OTM8009A. ****************************************************************************** * @attention * - * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> + * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -153,7 +151,8 @@ const uint8_t ShortRegData47[] = {0xC5, 0x66}; const uint8_t ShortRegData48[] = {OTM8009A_CMD_NOP, 0xB6}; const uint8_t ShortRegData49[] = {0xF5, 0x06}; - +const uint8_t ShortRegData50[] = {OTM8009A_CMD_NOP, 0xB1}; +const uint8_t ShortRegData51[] = {0xC6, 0x06}; /** * @} */ @@ -354,6 +353,10 @@ DSI_IO_WriteCmd(0, (uint8_t *)ShortRegData49); ///////////////////////////////////////////////////////////////////////////// + /* CABC LEDPWM frequency adjusted to 19,5kHz */ + DSI_IO_WriteCmd(0, (uint8_t *)ShortRegData50); + DSI_IO_WriteCmd(0, (uint8_t *)ShortRegData51); + /* Exit CMD2 mode */ DSI_IO_WriteCmd(0, (uint8_t *)ShortRegData1); DSI_IO_WriteCmd( 3, (uint8_t *)lcdRegData25);