Skip to content

Run LVGL on MaTouch with SquareLine IDE

Download and install Squareline

image.png

  • Please download and install Squareline version 1.4.0.
  • And then, download simplified packages.
  • Open document Squareline board, unzip the simplified packages and copy it into the board folder.

Create project

image.png

  • Open the Squareline Studio application and click “Create”.
  • You will see an option named “Makerfabs”. Select it, and you will see two different board sizes: 2.1 inch and 4.0 inch.
  • Choose the one you need, modify the address where you want to save the project and click “CREAT”.
  • Now, add your components to the canvas and click Output.

Library setting

image.png

  • Open the folder where you saved the output file and copy lv_conf.h from SquareLine_Project >> library to lvgl >> scr.
  • Then, copy all the libraries of SquareLine_Project to document >> Arduino >> library.
  • If these libraries already exist, delete the original ones.

Verify program

IMG_20240401_101114.jpg

  • Open ui.ino, verify it, and you should see the draft run successfully.
  • Upload it to the screen, and you can interact with the screen.

More info

image.png

This method will help you use LVGL on Matouch screens more easily. Simply open the Makerfabs options page and click on 'info', you will access our product page, which contains a lot of resources. we currently offer simplified packages for sizes 2.1 and 4.0, with even more exciting options in development. So stay tuned and get ready to experience it.

FAQ

You can list your questions here or contact techsupport@makerfabs.com for technology support. Detailed descriptions of your question will help to solve your question.

Resource