<?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>ST7789 Displaying 320x240 Resolution NRF5SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109634/st7789-displaying-320x240-resolution-nrf5sdk</link><description>Hi Everyone, 
 I am using ST7789 based TFT LCD. I find out that there is a driver for ST7735 and I tried to use it with ST7789 driver. I can able to apply anything under 255 screen width and height. However, my TFT can support upto 320x240 resolution</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Apr 2024 11:46:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109634/st7789-displaying-320x240-resolution-nrf5sdk" /><item><title>RE: ST7789 Displaying 320x240 Resolution NRF5SDK</title><link>https://devzone.nordicsemi.com/thread/476856?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 11:46:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ae8c1d9-6e37-43ec-8681-1c1b2a54824c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I guess it is some buffer size that rolls over. The driver found in the sample is just an example on how to do it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using SPI in your application? If so, there is a &amp;quot;bug&amp;quot; in the SPI driver where the buffer size is using a uint8_t for length. This was written when the nRF52832 was the only nRF52 device, and this has a hardware SPI with only 256 bytes (so 8 bits buffer length. 0xFF = 255)&lt;/p&gt;
&lt;p&gt;All the other nRF5 devices (I think) has 16 bit buffer lengths, so the buffer can be a lot longer. I don&amp;#39;t know what nRF5 device you are using, but if it is the nRF52840, then you can go into the nrf_drv_spi.c/h and change the lengths from uint8_t to uint16_t, and see if that helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789 Displaying 320x240 Resolution NRF5SDK</title><link>https://devzone.nordicsemi.com/thread/476638?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 14:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e1dbf0c-2df1-420b-bb50-fb6b4b6fd609</guid><dc:creator>bsarica</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;The issue is that I can able to perform increasing in the width and height up to 255. In each change in the height or width between 0-255 is observable from the LCD Screen. However, If I tried to increase the height or width above the 255, LCD Display rendering area shrinks into much more smaller value (Observable on the LCD). I was giving the 266 as an example for the demonstrate the shrinking with the numbers, it was not the function return or else.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789 Displaying 320x240 Resolution NRF5SDK</title><link>https://devzone.nordicsemi.com/thread/476634?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 13:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f9da307-6109-446e-bbd5-f43c4a8f2e6d</guid><dc:creator>Edvin</dc:creator><description>[quote user="bsarica"] I cannot able to find the function that returns 10.[/quote]
&lt;p&gt;Then how do you determine that it returns 10?&lt;/p&gt;
[quote user=""] (instead of 266, it returns 10).[/quote]
&lt;p&gt;Or did I misunderstand this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789 Displaying 320x240 Resolution NRF5SDK</title><link>https://devzone.nordicsemi.com/thread/476260?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2024 05:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9bf40b5-d419-4cd6-842f-da24b16f1e0d</guid><dc:creator>bsarica</dc:creator><description>&lt;p&gt;Hi Edvin, Yes I am using nRF5 SDK. In the sdk.config file there is a macros for ST7735_WIDTH and ST7735_HEIGHT. I can increase these numbers upto 255, even though it says the maximum supported resolution is 160x128. I cannot able to find the function that returns 10. However, I can able to see the height and width settings from the LCD Screen. Whenever it reaches out from the 255, display shrinks into the modulus of 256 (I believe).&amp;nbsp; I also configured the as 320x240 in the st7735 .c file from looking AdaFruit&amp;#39;s ST7789 Library. Here is below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;write_command(ST7735_CASET);
write_data(0x00);
write_data(0x02);
write_data(320&amp;gt;&amp;gt;8);
write_data(320 &amp;amp;&amp;amp; 0xff);
write_command(ST7735_RASET);
write_data(0x00);
write_data(0x01);
write_data(0x00);
write_data(240);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advence&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789 Displaying 320x240 Resolution NRF5SDK</title><link>https://devzone.nordicsemi.com/thread/476100?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 10:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63b4d7c3-9e4c-4f81-9672-6d554600a594</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;Buğra,&lt;/p&gt;
&lt;p&gt;What function is it that returns 10? Are you using the nRF5 SDK or the nRF Connect SDK? (I see that your tag in the ticket says &amp;quot;nRF5 sdk&amp;quot;, but I want to make sure.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]I think that because of the limitation of uin8_t but height and width are uint16_t.[/quote]
&lt;p&gt;Again, can you please point to the file that you refer to here? I am not sure what to look for.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7789 Displaying 320x240 Resolution NRF5SDK</title><link>https://devzone.nordicsemi.com/thread/476042?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 05:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9b79f80-2abf-4744-be7c-e36475911e10</guid><dc:creator>azwin</dc:creator><description>&lt;p&gt;#ifndef ST7735_HEIGHT&lt;br /&gt;#define ST7735_HEIGHT 160&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#ifndef ST7735_WIDTH&lt;br /&gt;#define ST7735_WIDTH 128&lt;br /&gt;#endif .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;you can define 160x128 as ST supports this resolution . in SDK.config&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>