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?

ソリューションへジャンプ
857件の閲覧回数
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 解決策
817件の閲覧回数
seobi1111
Contributor II

Hello, zongchunyu.

Thank you for your support.

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
837件の閲覧回数
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

 

 

 

827件の閲覧回数
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 件の賞賛
819件の閲覧回数
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 件の賞賛
818件の閲覧回数
seobi1111
Contributor II

Hello, zongchunyu.

Thank you for your support.

0 件の賞賛