<?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>DevAcademy Intermediate Lesson 5 Exercise 2 with Elegoo 2.8&amp;quot; TFT screen</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113976/devacademy-intermediate-lesson-5-exercise-2-with-elegoo-2-8-tft-screen</link><description>I&amp;#39;m trying to follow the DevAcademy Intermediate Lesson 5 Exercise 2 using an Elegoo shield instead of the Adafruit one. 
 The shield I&amp;#39;m using is this one: https://www.elegoo.com/blogs/arduino-projects/elegoo-2-8-inch-touch-screen-for-raspberry-pi-manual</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Aug 2024 15:07:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113976/devacademy-intermediate-lesson-5-exercise-2-with-elegoo-2-8-tft-screen" /><item><title>RE: DevAcademy Intermediate Lesson 5 Exercise 2 with Elegoo 2.8" TFT screen</title><link>https://devzone.nordicsemi.com/thread/498673?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 15:07:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ded7075a-301e-4cd9-97c9-281f641cd7a7</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like your SPI configuration is for the SD card SPI, yes, and not for communicating with the LCD display.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://www.adafruit.com/product/1947"&gt;shield used on DevAcademy&lt;/a&gt; supports the &amp;quot;4-wire 8-bit data serial interface II&amp;quot; MCU interface, which is also what is used for the exercise. The Elegoo board, on the other hand, doesn&amp;#39;t support this mode, but rather uses the &amp;quot;8080 MCU 8-bit bus interface&amp;quot; mode.&lt;/p&gt;
&lt;p&gt;This means, in short, that the shield that you are using is not compatible with the DevAcademy exercise.&lt;/p&gt;
&lt;p&gt;In order to use the Elegoo shield, you would need the proper set of drivers for using the bus interface (instead of using SPI), as well as the correct overlay configuration for setting up the pins of the bus interface for that bus driver.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DevAcademy Intermediate Lesson 5 Exercise 2 with Elegoo 2.8" TFT screen</title><link>https://devzone.nordicsemi.com/thread/498505?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 18:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2390696a-6c75-494a-bfeb-0e78f6b955ee</guid><dc:creator>olalonde</dc:creator><description>&lt;p&gt;After further inspection, it looks like the pins were not exactly the same, so I modified the overlay (boards/nrf52840dk_nrf52840.overlay) as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3{
    compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
    #address-cells = &amp;lt; 0x1 &amp;gt;;
    #size-cells = &amp;lt; 0x0 &amp;gt;;
    reg = &amp;lt; 0x4002f000 0x1000 &amp;gt;;
    interrupts = &amp;lt; 0x2f 0x1 &amp;gt;;
    max-frequency = &amp;lt; 0x1e84800 &amp;gt;;
    easydma-maxcnt-bits = &amp;lt; 0x10 &amp;gt;;
    rx-delay-supported;
    rx-delay = &amp;lt; 0x2 &amp;gt;;
    status = &amp;quot;okay&amp;quot;;
    //  p0.29 (A3), p1.12 (D10)
    cs-gpios = &amp;lt; &amp;amp;arduino_header 0x3 0x1 &amp;gt;, &amp;lt; &amp;amp;arduino_header 0x10 0x1 &amp;gt;;
    pinctrl-0 = &amp;lt; &amp;amp;spi3_default &amp;gt;;
    pinctrl-1 = &amp;lt; &amp;amp;spi3_sleep &amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    ili9340: ili9340@0 {
        compatible = &amp;quot;ilitek,ili9340&amp;quot;;
        spi-max-frequency = &amp;lt; 0xe7319b &amp;gt;;
        reg = &amp;lt; 0x0 &amp;gt;;
        // p0.28 (A2)
        cmd-data-gpios = &amp;lt; &amp;amp;arduino_header 0x2 0x1 &amp;gt;;
        width = &amp;lt; 0x140 &amp;gt;;
        height = &amp;lt; 0xf0 &amp;gt;;
        pixel-format = &amp;lt; 0x1 &amp;gt;;
        rotation = &amp;lt; 0x5a &amp;gt;;
        frmctr1 = [ 00 18 ];
        pwctrl1 = [ 23 00 ];
        vmctrl1 = [ 3E 28 ];
        vmctrl2 = [ 86 ];
        pgamctrl = [ 0F 31 2B 0C 0E 08 4E F1 37 07 10 03 0E 09 00 ];
        ngamctrl = [ 00 0E 14 03 11 07 31 C1 48 08 0F 0C 31 36 0F ];
    };
    adafruit_2_8_tft_touch_v2_sdhc: sdhc@1 {
        compatible = &amp;quot;zephyr,sdhc-spi-slot&amp;quot;;
        reg = &amp;lt; 0x1 &amp;gt;;
        status = &amp;quot;okay&amp;quot;;
        spi-max-frequency = &amp;lt; 0x16e3600 &amp;gt;;
        mmc {
            compatible = &amp;quot;zephyr,sdmmc-disk&amp;quot;;
            status = &amp;quot;okay&amp;quot;;
        };
    };
};

&amp;amp;pinctrl {
    spi3_default{
        group1 {
                psels = &amp;lt;NRF_PSEL(SPIM_SCK, 1, 15)&amp;gt;,
                        &amp;lt;NRF_PSEL(SPIM_MISO, 1, 14)&amp;gt;,
                        &amp;lt;NRF_PSEL(SPIM_MOSI, 1, 13)&amp;gt;;
        };
    };

    spi3_sleep{
        group1 {
                psels = &amp;lt;NRF_PSEL(SPIM_SCK, 1, 15)&amp;gt;,
                        &amp;lt;NRF_PSEL(SPIM_MISO, 1, 14)&amp;gt;,
                        &amp;lt;NRF_PSEL(SPIM_MOSI, 1, 13)&amp;gt;;
                low-power-enable;
        };
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Modified lines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    //  p0.29 (A3), p1.12 (D10)
    cs-gpios = &amp;lt; &amp;amp;arduino_header 0x3 0x1 &amp;gt;, &amp;lt; &amp;amp;arduino_header 0x10 0x1 &amp;gt;;
    
    // p0.28 (A2)
    cmd-data-gpios = &amp;lt; &amp;amp;arduino_header 0x2 0x1 &amp;gt;;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But still a blank screen. I noticed from the &lt;a href="https://download.elegoo.com/03%20Other%20Kits/07%202.8-inch%20Screen/Elegoo%202.8%20Inch%20Touch%20Screen%20User%20Manual%20V1.00.2021.11.19.zip"&gt;board&amp;#39;s docs&lt;/a&gt; that the SPI pins appear to be for the SD card only... Maybe why it&amp;#39;s not working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>