<?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>ST7789V Display</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111688/st7789v-display</link><description>Hi all, 
 
 I have been successfully using an Adafruit 1.9&amp;quot; 170x320 ST7789 display, but when I switch to the Waveshare 2&amp;quot; 240x320 ST7789V display it doesn&amp;#39;t work. I&amp;#39;m wondering if I&amp;#39;m forgetting to do something in devicetree but nothing obvious sticks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jun 2024 12:37:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111688/st7789v-display" /><item><title>RE: ST7789V Display</title><link>https://devzone.nordicsemi.com/thread/487727?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 12:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9e57faf-d3af-423e-b640-e68a99c50e4e</guid><dc:creator>mmelv</dc:creator><description>&lt;p&gt;The problem was that the logic pins were running on 1.8v while the display was power with 3.3v.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789V Display</title><link>https://devzone.nordicsemi.com/thread/486961?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 20:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce9849be-ca0d-423f-b284-786995a7eb29</guid><dc:creator>mmelv</dc:creator><description>&lt;p&gt;It didn&amp;#39;t seem to help upon initial testing, but I will experiment some more on Monday. My display is 240x320 but messing with the width and height didn&amp;#39;t help. I might be missing something else. Really appreciate your responses!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789V Display</title><link>https://devzone.nordicsemi.com/thread/486960?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 20:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cb4f7e7-0637-4f6c-81e3-bf3e9b74bad6</guid><dc:creator>letter57</dc:creator><description>&lt;p&gt;Here is my device tree.overlay ,&amp;nbsp;perhaps you can compare the differences between the two. Refer to the ST7789V specification to find the differences.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;arduino_spi {
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;arduino_header 16 GPIO_ACTIVE_LOW&amp;gt;;	/* D10 */

	st7789v_st7789v_waveshare_240x240: st7789v@0 {
		compatible = &amp;quot;sitronix,st7789v&amp;quot;;
		spi-max-frequency = &amp;lt;20000000&amp;gt;;
		reg = &amp;lt;0&amp;gt;;
		cmd-data-gpios = &amp;lt;&amp;amp;arduino_header 15 GPIO_ACTIVE_LOW&amp;gt;;	/* D9 */
		reset-gpios = &amp;lt;&amp;amp;arduino_header 14 GPIO_ACTIVE_LOW&amp;gt;;	/* D8 */
		width = &amp;lt;240&amp;gt;;
		height = &amp;lt;240&amp;gt;;
		x-offset = &amp;lt;0&amp;gt;;
		y-offset = &amp;lt;0&amp;gt;;
		vcom = &amp;lt;0x19&amp;gt;;
		gctrl = &amp;lt;0x35&amp;gt;;
		vrhs = &amp;lt;0x12&amp;gt;;
		vdvs = &amp;lt;0x20&amp;gt;;
		mdac = &amp;lt;0x00&amp;gt;;
		gamma = &amp;lt;0x01&amp;gt;;
		colmod = &amp;lt;0x05&amp;gt;;
		lcm = &amp;lt;0x2c&amp;gt;;
		porch-param = [0c 0c 00 33 33];
		cmd2en-param = [5a 69 02 01];
		pwctrl1-param = [a4 a1];
		pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
		nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
		ram-param = [00 F0];
		rgb-param = [CD 08 14];
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="gtx-trans" style="left:561px;position:absolute;top:37px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789V Display</title><link>https://devzone.nordicsemi.com/thread/486955?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 18:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8ad81e8-e3e7-421e-985e-8c60b3e5823a</guid><dc:creator>mmelv</dc:creator><description>&lt;p&gt;I&amp;#39;m using Adafruit GFX library to control the pins. They are defined below. I&amp;#39;m also not using the Zephyr display driver. According to my oscilloscope, the signal is identical to each display so I&amp;#39;m thinking that the ST7789V is configured to receive data differently, hence why I thought it might be related to device tree.&lt;/p&gt;
&lt;p&gt;&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/pastedimage1717177649468v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789V Display</title><link>https://devzone.nordicsemi.com/thread/486761?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 03:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f21a9a9a-78de-4b64-ac06-31f0986739aa</guid><dc:creator>letter57</dc:creator><description>&lt;p&gt;I think you should not mark off cs-gpios, cmd-data-gpios, and reset-gpios.&lt;/p&gt;
&lt;p&gt;When the display device is ready, you need to call blanking_off() to display it correctly.&lt;/p&gt;
&lt;p&gt;Please refer to the example code below.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static const struct device &amp;#160; &amp;#160;*display_dev;
static const struct display_driver_api *st7789v_api;

static void &amp;#160; &amp;#160;wl_display_thread(void *p1, void *p2, void *p3)
{
&amp;#160; &amp;#160; int &amp;#160; &amp;#160;err;


&amp;#160; &amp;#160;&amp;#160;display_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));

&amp;#160; &amp;#160; LOG_INF(&amp;quot;wl_display_thread&amp;quot;);

&amp;#160; &amp;#160; if(!device_is_ready(display_dev))
&amp;#160; &amp;#160; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; LOG_ERR(&amp;quot;Device not ready, aborting test&amp;quot;);
&amp;#160; &amp;#160; &amp;#160; &amp;#160; return 0;
&amp;#160; &amp;#160; }

&amp;#160; &amp;#160; st7789v_api = display_dev-&amp;gt;api;
&amp;#160; &amp;#160; st7789v_api-&amp;gt;blanking_off(display_dev);
&amp;#160; &amp;#160;
&amp;#160; &amp;#160; setup_ui(&amp;amp;guider_ui);
&amp;#160; &amp;#160; events_init(&amp;amp;guider_ui);
&amp;#160; &amp;#160; custom_init(&amp;amp;guider_ui);

&amp;#160; &amp;#160; while (1)
&amp;#160; &amp;#160; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; lv_task_handler();
&amp;#160; &amp;#160; &amp;#160; &amp;#160; k_sleep(K_MSEC(5));
&amp;#160; &amp;#160; }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>