8 years, 10 months ago.

Orientation of QFT LCD on STM32F429I

I would like to set the LCD to be oriented in with the x axis on the long edge and y on the short edge.

Is there and init function that can set this?

Question relating to:

This class drives the touch screen module of the LCD display present on DISCO_F429ZI board. DISCO_F429ZI, LCD, Touch Screen

1 Answer

8 years, 10 months ago.

There may some information here:

https://developer.mbed.org/users/dreschpe/code/SPI_TFT_ILI9341/file/b2b3e5430f81/SPI_TFT_ILI9341.h

There is a set_orientation function, however the window x & y parameters may well have to be changed in the rest of the library for this to work.

I'm attempting to use the SPI_TFT_ILI9341 library now. I'm not sure what to set the LCD RESET pin to in the SPI_TFT_ILI9341 constructor. The board schematic shows that NRST is hardwired between the MCU and the LCD RESET pin.

posted by Edward Januska 06 Feb 2016

I figured out what the problem. I was making changes to ili3941.c but I never saw any impact. I was using the ST-LINK_CLI and for some reason the command I was using was not replacing the code on the board. I went back to using the win ST-LINK Utility and when I change

ili9341_WriteReg(LCD_MAC); ili9341_WriteData(0xC8);

to

ili9341_WriteReg(LCD_MAC); ili9341_WriteData(0xE8);

the screen rotates but I now I have to adjust the other parameters so the windows size renders correctly.

posted by Edward Januska 06 Feb 2016

Good result, perhaps you could send a pull request if successful.

posted by Paul Staron 06 Feb 2016