A minimal working project combining SquareLine Studio and PlatformIO for the LilyGo T-Panel board.
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.
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.
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.
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