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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
813 Views
seobi1111
Contributor II

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 Solution
773 Views
seobi1111
Contributor II

Hello, zongchunyu.

Thank you for your support.

View solution in original post

0 Kudos
4 Replies
793 Views
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

 

 

 

783 Views
seobi1111
Contributor II

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 Kudos
775 Views
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 Kudos
774 Views
seobi1111
Contributor II

Hello, zongchunyu.

Thank you for your support.

0 Kudos