Is it possible to rotate the MIMXRT1170-EVK LCD screen using the GUI Guider?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is it possible to rotate the MIMXRT1170-EVK LCD screen using the GUI Guider?

跳至解决方案
1,712 次查看
seobi1111
Contributor III

Hello

I am developing using MIMXRT1170-EVK and GUI Guider.

The development tool version is as follows.

 

   - MCUXpresso IDE : v11.8.0

   - MCUXpresso SDK  : v2.14.0

   - GUI Guider : v1.6.1

 

Landscape mode is in use.

I would like to display the LCD screen by rotating it 180 degrees when the power is turned on.

Is it supported by GUI Guider or SDK?

Please answer about my question.

 

 

1 解答
1,672 次查看
seobi1111
Contributor III

Hello, zongchunyu.

Thank you for your support.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,692 次查看
zongchunyu
NXP Employee
NXP Employee

Hello ysji,

Currently, the GUI Guider only support 270 degrees rotation(landscape mode) for MIMXRT1170-EVK board. but in fact the SDK can support 0/90/180/270 degrees rotation. you can update the <your gui guider project folder>\sdk\Core\board\lvgl_support.c file to rotate 180 degrees.

Change
lv_gpu_nxp_pxp_blit(((lv_color_t *)inactiveFrameBuffer), &dest_area, DEMO_BUFFER_WIDTH, color_p, area,
lv_area_get_width(area), LV_OPA_COVER, LV_DISP_ROT_270);

To
lv_gpu_nxp_pxp_blit(((lv_color_t *)inactiveFrameBuffer), &dest_area, DEMO_BUFFER_WIDTH, color_p, area,
lv_area_get_width(area), LV_OPA_COVER,LV_DISP_ROT_180);

 

Best Regards

Zongchun

 

 

 

1,682 次查看
seobi1111
Contributor III

Hello, zongchunyu

I modified the lvga_support.c file according to the guide and confirmed the desired operation.

I have additional questions.

Can't the user make changes when generating code in the GUI Guider without editing the lvga_support.c file?

In addition to the lvga_support.c file that you mentioned, I also modified the lv_conf.h file.

 

     #define LV_USE_GPU_NXP_PXP   0   ---->   1

 

I would like to have my code change automatically through the GUI Guider settings.

 

0 项奖励
回复
1,674 次查看
zongchunyu
NXP Employee
NXP Employee

Hello ysji.

Thanks for your suggestion. we will check how to support the screen rotation in future release.  you can enable the  LV_USE_GPU_NXP_PXP using GUI Guider IDE. please refer to the attached picture.

Best Regards

Zongchun

0 项奖励
回复
1,673 次查看
seobi1111
Contributor III

Hello, zongchunyu.

Thank you for your support.

0 项奖励
回复