Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:
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 06 Feb 2016I 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 06 Feb 2016