ESP32S3 HMI display Square Line Arduino

Can someone tell me how to rotate the Elecrow HMI display.

I am using the 5 inch and cant figure out what to change in the "5.0-inch_Squareline_Demo.ino"

File to get the display to rotate.

Thanks in advance

Comments

  • Thanks Julita I could not figure it out from that post but I asked Elecrow.
    This is from Elecrow and I tested it and it works.
    In the file where lv_init (); is I added the following lines

    disp_drv.drawbuf = 1;  //added lines below here
    disp_drv.sw_rotate - 1;
    disp_drv.rotate = LV_DISP_ROT_90;
    lv_disp_drv_register(&disp_drv);  //added lines above here 
    
Sign In or Register to comment.