Skip to content
\n

Using the additional library TFTShape of androdlang, even polylines, polygons, grids, splines, stars and n-gons can be drawn using TFT_eSPI. Since LVGL version 9.x is now integrated into esp32-smartdisplay (another big step forward, thanks to René), ThorVG, which is now part of LVGL, also contains vector-oriented drawing functions. However, I did not manage to squeeze this library into the existing memory.

\n

My question is now: Has anyone been able to successfully use ThorVG on one of the Sunton boards? Or does anyone have any knowledge of where drawing functions exist or could be created that are based on LVGL? My goal is to draw vector data from OpenStreetMap for a GPS application. I would need to draw polylines of different width and color and filled polygons (preferably also concave ones) of different colors.

\n

I know my question is kind of off-topic here, I hope you forgive me.

","upvoteCount":1,"answerCount":7,"acceptedAnswer":{"@type":"Answer","text":"
\n

BTW: It is already LVGL 9.2.2 Maybe something needs to be included in the lvgl configuration?

\n
\n

I think I found the reason for the observed difference. I get LVGL version 9.2.2, when I build with one of the following methods, which do the same for LVGL:

\n
; either with\nlib_deps = \n\trzeldent/esp32_smartdisplay @2.1.0\n\n; or with\nlib_deps = \n\tlvgl @^9.2.2\n
\n

But when I build with

\n
lib_deps = \n\thttps://github.com/lvgl/lvgl.git\n
\n

then the library manager reports:

\n
        Library Manager: [email protected]+sha.df18a5f has been installed!\n        Updating metadata for the vscode IDE...\n
\n

This means, that the master branch of LVGL on GitHub is the development version 9.3.0 and not 9.2.2, which is the release version. SVG is not yet implemented in version 9.2.2, but in the new version, which has not yet been released. This knowledge scares the spirits away and the fog is lifted!

","upvoteCount":1,"url":"https://github.com/rzeldent/esp32-smartdisplay/discussions/218#discussioncomment-11451687"}}}

Drawing using LVGL #218

Answered by polarkernel
polarkernel asked this question in Q&A
Discussion options

You must be logged in to vote

BTW: It is already LVGL 9.2.2 Maybe something needs to be included in the lvgl configuration?

I think I found the reason for the observed difference. I get LVGL version 9.2.2, when I build with one of the following methods, which do the same for LVGL:

; either with
lib_deps = 
	rzeldent/esp32_smartdisplay @2.1.0

; or with
lib_deps = 
	lvgl @^9.2.2

But when I build with

lib_deps = 
	https://github.com/lvgl/lvgl.git

then the library manager reports:

        Library Manager: [email protected]+sha.df18a5f has been installed!
        Updating metadata for the vscode IDE...

This means, that the master branch of LVGL on GitHub is the development version 9.3.0 and not 9.2.2, which is the relea…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rzeldent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants