Skip to content

OzInFl/m5core2-lvgl8-SquarelineStudio-PlatformIO

Repository files navigation

Modified to work with the Squareline Studio Beta 1.1.0 beta1 
(although it may work with the current stable 1.0.5 (with lvgl8 export) as well)

******** NOTE IN ORDER TO GET A SUCESSFUL COMPILE ON PLATFORMIO, YOU MUST DO A FEW THINGS****************************************
  1) copy the lv_conf.h from the src folder into the .pio/libdeps/lvgl folder (you have to do this since the lvgl library is pulled from github)
  2) edit the .pio/libdeps/lvgl/src/misc/lv_conf_internal.h and change the line like so:
       #elif defined(LV_CONF_INCLUDE_SIMPLE)         /*Or simply include lv_conf.h is enabled*/
        #include "lv_conf.h"
    #else
        #include "lv_conf.h"                //(prior to that this line had "../../lv_conf.h" remove the ../../)//
    #endif
 *********************************************************************************************************************************
    
(Somone smarter than me will figure out how to fix this, im not a coding expert!!!)

I have included a basic interface that I am creating to test with . 

If you set your export directory in squareline to the src directory of this porject you can edit your UI and export then rebuild the Platformio project.
Finally uploading to the M5Stack COre2 Device. 

Still a work in progress, but thought it may help a few folks out there looking for a starting point. 

Im hoping that my hours of aggrivation figuring it out will help someone like me that was beating their head up against the wall!!


ORIGINAL TEXT - 


LVGL example for M5Stack Core2, Arduino and platformio

taken from:

https://forum.m5stack.com/topic/3613/how-to-run-lvgl-on-m5stack
https://macsbug.wordpress.com/2021/07/05/co2-monitor-with-m5stack-and-lvgl/
https://macsbug.wordpress.com/2021/07/03/lvgl-with-m5stack-part-2/

About

M5Stack - LVGL8 - Platformio - Getting it all to work.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published