Skip to content

Get Started with SquareLine Studio

SquareLine Studio Brief Introduction


SquareLine Studio is a next-generation user interface (UI) solution for individuals and professionals that allows users to quickly and easily design and develop beautiful UIs for embedded devices. This software provides integrated design, prototyping and development capabilities, supporting the export of platform-independent C or MicroPython code for LVGL (Lightweight Graphics Library) that can be compiled and run on any vendor's device.

Install the SquareLine Studio Software


Enter the https://squareline.io/ to download the SquareLine installation file.

download-squareline

Download the version corresponding to your system (here we take the Windows version as an example, it is recommended to use version 1.3.4, which has one more simulation running function than version 1.4).

download-squareline-1

Double-click the setup.exe file.

download-squareline-3

Click install.

download-squareline-4

Wait for installation.

download-squareline-5

Installation finish.

download-squareline-6

There is a 30-day trial period for the first time you use it. Please follow the prompts to register an account. You will continue to use it when you log in to your account next time.

download-squareline-7

Basic introduction of software interface


Enter the software

  1. The historical project page: open the project built earlier.

    squareline-interface

  2. Create a project page: choose different platforms according to different hardware of the project.

    squareline-interface-1

    Note:

    When select the Arduino framwork, there's only one option "Arduino with TFT_eSPI". By choosing this, the squareline studio will generate a template code suitable for the TFT_eSPI library. However, squareline studio not only supports the TFT_eSPI library, it supports a variety of libraries to suit different hardware and application needs. For example, Adafruit_GFX library, LovyanGFX etc.

    After using SLS to generate UI code, we then use different graphics libraries according to different hardware and modify the corresponding code to display the content you design.

  3. Example page. This page has several official examples for reference.

    squareline-interface-2

  4. The project settings bar is used to make basic settings for the project, including property settings such as project name, screen size, display angle, etc.

    squareline-interface-3

    Note: Please select the corresponding resolution and color depth according to the screen specifications.

Operation Area

squareline-interface-4

  1. Toolbar, including File, Export, and Help. Basic file operation bar, create or open files, export UI files and other operations. Click help and there are related introductory documents.
  2. Screen bar, the project screen will be listed here.
  3. Widget area, all widgets are here and can be selected and used according to project needs.
  4. Hierarchy area, it will show every widget used in each screen.
  5. This area shows the actual display effect, you can adjust the widgets or screen here.
  6. Material column, the added materials are displayed here.
  7. Setting bar, where you can make basic settings for each part, including the basic attributes and trigger operations of the part.
  8. Theme bar, different themes can be set.

Example Demonstration

  1. Open an example.

    squareline-example-1

    squareline-example-2

  2. Click "File->Project Settings" to modify the project setting.

    squareline-example-3

  3. Modify the resolution and color depth according to the hardware specification.

    squareline-example

  4. The board properties select Arduino Choose the latest version of lvgl Select the export path, the exported UI file will be at this location Set lvgl path: lvgl.h Set export all files to to one folder After all settings are completed, click "APPLY CHANGES".

    squareline-example-4

  5. To export the file, click Export->Export UI Files, and the UI file will be generated.

    squareline-example-5

  6. In the path set previously(in step 4), copy all the generated ui files to folder where main program located.(Please go back to the Arduino Tutorial page to download the main program for each screen.)

    squareline-example-6

  7. Open the main program.

    squareline-example-7

  8. Install the required libraries in Arduino IDE, select the corresponding board, configure the board, and upload the program (please turn to the Arduino Tutorial on each screen for details).

  9. After uploading, the demo project will be displayed on the screen.

squareline-example-8

squareline-example-9