Skip to content

Commit d564c37

Browse files
committed
mimxrt/boards/MIMXRT1170_EVK: Bring in display_support from sdk examples.
Signed-off-by: Andrew Leech <[email protected]>
1 parent acf6844 commit d564c37

File tree

4 files changed

+568
-2
lines changed

4 files changed

+568
-2
lines changed

ports/mimxrt/boards/MIMXRT1170_EVK/display_support.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
#endif
7878

7979
#define DEMO_BUFFER_WIDTH DEMO_PANEL_WIDTH
80-
#define DEMO_BUFFER_HEIGHT DEMO_PANEL_HEIGHT
80+
#define DEMO_BUFFER_HEIGHT (DEMO_PANEL_HEIGHT / 10)
8181

8282
/* Where the frame buffer is shown in the screen. */
8383
#define DEMO_BUFFER_START_X 0U

ports/mimxrt/boards/MIMXRT1170_EVK/lvgl_support.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
#endif
6969

7070
#define DEMO_FB_SIZE \
71-
(((DEMO_BUFFER_WIDTH * DEMO_BUFFER_HEIGHT * LCD_FB_BYTE_PER_PIXEL / 10) + DEMO_FB_ALIGN - 1) & ~(DEMO_FB_ALIGN - 1))
71+
(((DEMO_BUFFER_WIDTH * DEMO_BUFFER_HEIGHT * LCD_FB_BYTE_PER_PIXEL) + DEMO_FB_ALIGN - 1) & ~(DEMO_FB_ALIGN - 1))
7272

7373
#if LV_USE_GPU_NXP_VG_LITE
7474
#define VG_LITE_MAX_CONTIGUOUS_SIZE 0x200000
@@ -188,6 +188,8 @@ void lv_port_pre_init(void) {
188188
void lv_port_disp_init(void) {
189189
// static lv_disp_draw_buf_t disp_buf;
190190

191+
BOARD_InitMipiPanelPins();
192+
191193
memset(s_frameBuffer, 0, sizeof(s_frameBuffer));
192194
#if DEMO_USE_ROTATE
193195
memset(s_lvglBuffer, 0, sizeof(s_lvglBuffer));
@@ -447,6 +449,7 @@ void DEMO_FlushDisplay(lv_display_t * disp, const lv_area_t * area, uint8_t * px
447449
#endif
448450

449451
void lv_port_indev_init(void) {
452+
BOARD_MIPIPanelTouch_I2C_Init();
450453
// static lv_indev_drv_t indev_drv;
451454

452455
/*------------------

0 commit comments

Comments
 (0)