Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 2.17 KB

File metadata and controls

55 lines (39 loc) · 2.17 KB

SquareLine LilyGo T-Panel Starter Project

A minimal working project combining SquareLine Studio and PlatformIO for the LilyGo T-Panel board.

Quick Start: Build

To build the project and flash it onto a T-Panel board:

  • clone this repo
  • install VSCode
  • install the PlatformIO plugin in VSCode
  • add this folder to your VSCode workspace
  • build using PlatformIO. It should succeed with no errors.
  • plug in your T-Panel board and select Upload using PlatformIO.

The example UI should now appear on your T-Panel display.

Editing the UI

To edit the UI:

  • install SquareLine Studio
  • open SquareLine Studio, in the Open tab, select Import Project at the bottom
  • select the .spj file from squareline_project/ in this repo
  • make changes to the UI
  • select Export -> Export UI Files. You should be prompted to select the export location.
  • select the directory src/ui in this repo
  • the UI files will be updated

You can now rebuild and upload the project in VSCode / PlatformIO, and your changes should appear on your T-Panel display.

Notes

This project was created to help you get started with SquareLine Studio and PlatformIO for the LilyGo T-Panel. I could not find any guides for that particular combination and found it difficult to get started.

This project was derived from the LilyGo T-Panel repo with the addition of a simple example SquareLine Studio project.

If you see any errors or have any suggestions please raise an issue in github.

Future Work

Replace the Arduino_GFX source library with a lib_deps reference. This can not be done trivially as there appears to be modifications to the library as obtained from the LilyGo T-Panel repo.

Replace the TouchLib source library with a lib_deps reference, if possible. The current library was obtained from the LilyGo T-Panel repo but I can't find a corresponding one in the PlatformIO libraries. This library may be the source: https://github.com/mjdonders/CST816_TouchLib