TFT size corrected
This commit is contained in:
parent
6037c3e7e9
commit
e99740741c
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue