<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>facing issue while using LVGL sample with ssd1306 oled display</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110239/facing-issue-while-using-lvgl-sample-with-ssd1306-oled-display</link><description>I hope this message finds you well. 
 I am currently encountering an issue while attempting to use an LVGL (LittlevGL) sample code with an SSD1306 OLED display. I have followed the instructions provided in the LVGL documentation and attempted to run the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Apr 2024 11:20:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110239/facing-issue-while-using-lvgl-sample-with-ssd1306-oled-display" /><item><title>RE: facing issue while using LVGL sample with ssd1306 oled display</title><link>https://devzone.nordicsemi.com/thread/479681?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 11:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5cdaff6-a1a7-49e1-a358-d4e08a9f010b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m seeing similar behavior on my display. I get correct output with these changes:&lt;/p&gt;
&lt;p&gt;In prj.conf, add this to support SH1106 display:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SSD1306_SH1106_COMPATIBLE=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Modify width to match SH1106 display in nrf52dk_nrf52832.overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;width = &amp;lt;132&amp;gt;;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I main.c, add parentheses around calculation to place in middle of display:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint16_t start_y = (display_height - text_height)/2;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When built with nRF Connect SDK v2.5.0 this is the output on my display:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20240419_5F00_131650-_2800_Small_2900_.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/oled2.zip"&gt;devzone.nordicsemi.com/.../oled2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: facing issue while using LVGL sample with ssd1306 oled display</title><link>https://devzone.nordicsemi.com/thread/478911?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 09:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a019b4e-87ff-47b7-b8ad-262288f3cb62</guid><dc:creator>Amank0623</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/WhatsApp-Image-2024_2D00_04_2D00_16-at-15.12.08_5F00_6a1539f2.jpg_2D00_640x480.jpg_2D00_640x480.jpg" /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/WORKING_5F00_oled.zip"&gt;devzone.nordicsemi.com/.../WORKING_5F00_oled.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;i have used the LVGL sample provided by zephyr samples and i was using ssd1306 &amp;amp; i am not able to increase its black strip size to display&amp;nbsp; complete sentence could you explain where i am getting wrong&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: facing issue while using LVGL sample with ssd1306 oled display</title><link>https://devzone.nordicsemi.com/thread/478908?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 09:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a9d18c8-2cf1-4bc0-8e5a-3320928b41f8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Display Initialization: I am having trouble initializing the SSD1306 OLED display correctly with LVGL. Despite following the sample code and documentation, the display remains blank or shows unexpected behavior.[/quote]
&lt;p&gt;Can you provide a link to the exact sample code you are using? Which SDK version are you using for building?&lt;/p&gt;
[quote user=""]Code Compatibility: I am using the latest version of LVGL and have downloaded the sample code provided for SSD1306 displays. However, I suspect there may be compatibility issues or configuration settings that need to be adjusted for my specific setup.[/quote]
&lt;p&gt;What is the exact model of your display? Are you sure it is SSD1306 and not the very similar SH1106 display? If you are using nRF Connect SDK and the SSD1306 driver, you can set an option to support SH1106, see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/releases/migration-guide-3.5.html#device-drivers-and-device-tree"&gt;Zephyr 3.5 migration guide&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;code&gt;&lt;span&gt;&lt;span&gt;CONFIG_SSD1306_SH1106_COMPATIBLE&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;was used to assert that the device is (compatible with) SH1106. This has been replaced by a dedicated dts compatible declaration. You may update an existing sh1106 node to change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;designation from&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/api/compatibles/solomon%2Cssd1306fb.html#std-dtcompatible-solomon-ssd1306fb"&gt;&lt;code&gt;&lt;span&gt;solomon,ssd1306fb&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/api/compatibles/sinowealth%2Csh1106.html#std-dtcompatible-sinowealth-sh1106"&gt;&lt;code&gt;&lt;span&gt;sinowealth,sh1106&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;.&amp;quot;&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/zephyr/samples/drivers/display/README.html"&gt;Zephyr Display sample&lt;/a&gt; should work with SSD1306. Have you tried this to see that the display works correctly without LVGL?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>