TFT size corrected

This commit is contained in:
ChrisMicro 2017-07-07 15:47:06 +02:00 committed by Daniel Fekete
parent 6037c3e7e9
commit e99740741c
2 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,8 @@
#include "Arduino.h"
#include "Adafruit_GFX.h"
#include "BSP_f429i_discovery.h"
//#include "BSP_f429i_discovery.h"
#include "stm32f429i_discovery_lcd.h"
#define LTDC_BLACK 0x0000 /* 0, 0, 0 */
#define LTDC_NAVY 0x000F /* 0, 0, 128 */

View File

@ -184,8 +184,10 @@ uint8_t BSP_LCD_Init(void)
LtdcHandler.Init.AccumulatedActiveH = 323;
/* Configure total width */
LtdcHandler.Init.TotalWidth = 279;
//LtdcHandler.Init.TotalWidth = 240;
/* Configure total height */
LtdcHandler.Init.TotalHeigh = 327;
//LtdcHandler.Init.TotalHeigh = 320;
/* Configure R,G,B component values for LCD background color */
LtdcHandler.Init.Backcolor.Red= 0;