5 years, 12 months ago.

how to put display in portrait mode ?


When using the lcd demo for the stm32f7 discovery , the text is always displayed in landscape. Is it possible with some command to turn it into portrait mode ? I don't seem to find a command for it.

Thanks ,


Question relating to:

The STM32F746G-DISCO discovery board (32F746GDISCOVERY) is a complete demonstration and development platform for STMicroelectronics ARM® Cortex®-M7 core-based STM32F746NGH6 microcontroller.

1 Answer

5 years, 11 months ago.

Hi Ronny, unfortunately, the orientation can't be selected.

In rk043fn48h.h, I noticed these defined values:

  * @brief  RK043FN48H Size  
#define  RK043FN48H_WIDTH    ((uint16_t)480)          /* LCD PIXEL WIDTH            */
#define  RK043FN48H_HEIGHT   ((uint16_t)272)          /* LCD PIXEL HEIGHT           */

  * @brief  RK043FN48H Timing  
#define  RK043FN48H_HSYNC            ((uint16_t)41)   /* Horizontal synchronization */
#define  RK043FN48H_HBP              ((uint16_t)13)   /* Horizontal back porch      */
#define  RK043FN48H_HFP              ((uint16_t)32)   /* Horizontal front porch     */
#define  RK043FN48H_VSYNC            ((uint16_t)10)   /* Vertical synchronization   */
#define  RK043FN48H_VBP              ((uint16_t)2)    /* Vertical back porch        */
#define  RK043FN48H_VFP              ((uint16_t)2)    /* Vertical front porch       */

  * @brief  RK043FN48H frequency divider  
#define  RK043FN48H_FREQUENCY_DIVIDER    5            /* LCD Frequency divider      */

And in "stm32746g_discovery_lcd.c" I see TextStrings can't be printed rotated either. (Only Center, Left, and Right mode)