<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>lvgl LVGL 9 — ELECROW - FORUM</title>
        <link>https://forum.elecrow.com/index.php?p=/</link>
        <pubDate>Sat, 30 May 2026 05:35:37 +0000</pubDate>
        <language>en</language>
            <description>lvgl LVGL 9 — ELECROW - FORUM</description>
    <atom:link href="https://forum.elecrow.com/index.php?p=/discussions/tagged/lvgl-lvgl-9/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>LVGL Ver.9 setup, specifically buffers....</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/28088/lvgl-ver-9-setup-specifically-buffers</link>
        <pubDate>Thu, 15 Jan 2026 21:22:36 +0000</pubDate>
        <category>Elecrow HMI Display</category>
        <dc:creator>MicroGuy</dc:creator>
        <guid isPermaLink="false">28088@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>I've been working with LGVL ver9 on a 4" CYD, and (after much work) everything is running well.<br />
But the end goal was to move onto the Elecrow 7" hmi display.  I though it would be about the same....<br />
I can't go back in lvgl versions, because I do not fancy having to learn all new (old) commands.  I've got enough confusion points as it is.<br />
So, does anybody have any working setup code for lvgl 9 on one of these displays?  I finally got it to where it would compile without blowing up, but when I load it, it just resets continuously.    It looks to be right at where the buffers are created after the "display" is created.<br />
I have:</p>

<hr />

<p>//  disp = (SCREEN_WIDTH, SCREEN_HEIGHT, draw_buf, sizeof(draw_buf));<br />
  static uint8_t buf[800 * 480 / 10 * 2];<br />
  lv_display_t * disp = lv_display_create(800, 480);<br />
  Serial.print("display created");<br />
  lv_display_set_buffers(disp, buf, NULL, 76800, LV_DISPLAY_RENDER_MODE_PARTIAL);</p>

<hr />

<p>Which is about as simple as I can get.   There's no option in the lvgl_conf.h file for display chip settings (as there are for the smaller CYDs)<br />
(even if I create buf1 and buf2, being the same setup, and use two buffers instead of the NULL, it still blows up, so that's not it)</p>

<p>Any help would be much appreciated.  I've been fighting lvgl for weeks now.  And Squareline only supports upto version 8 something, so that's not an option.</p>
]]>
        </description>
    </item>
   </channel>
</rss>
