<?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>Waveshare e-paper display, spi, zephyr, nrf52840dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111308/waveshare-e-paper-display-spi-zephyr-nrf52840dk</link><description>We would like to develop for the waveshare 1.02 e-paper display. We have limited experience with SPI on Zephyr and are looking for the easiest way to get a &amp;quot;hello world&amp;quot; result using nrf52840dk. Our plan (unless you suggest otherwise) is to use the paper</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 May 2024 15:44:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111308/waveshare-e-paper-display-spi-zephyr-nrf52840dk" /><item><title>RE: Waveshare e-paper display, spi, zephyr, nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/486724?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 15:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5a4d62-136f-443c-80b2-de7df85d4139</guid><dc:creator>mej7000</dc:creator><description>&lt;p&gt;Yes, I agree. I have both the fundamentals and intermediate certifications and they are really helpful in understanding the concepts. Still have so much more to learn, but in this case it&amp;#39;s more the specifics of the implementation that is causing us issue.&lt;br /&gt;&lt;br /&gt;Also, DSHIELD is new to us and I don&amp;#39;t remember that being covered in the certifications. It appears that DSHIELD is responsible for creating an overlay for the Waveshare display...?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Waveshare e-paper display, spi, zephyr, nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/486720?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 15:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f05a914-39fc-4d5f-a72e-ba44ce7a32ca</guid><dc:creator>mej7000</dc:creator><description>&lt;div class="nH"&gt;
&lt;div class="aHU hx"&gt;
&lt;div&gt;
&lt;div class="h7 ie"&gt;
&lt;div class="Bk"&gt;
&lt;div class="G3 G2"&gt;
&lt;div id=":64k"&gt;
&lt;div class="adn ads" data-message-id="#msg-a:r-1240826832424000866" data-legacy-message-id="18fca21b395ead98"&gt;
&lt;div class="gs"&gt;
&lt;div class=""&gt;
&lt;div id=":64n" class="ii gt"&gt;
&lt;div id=":64m" class="a3s aiL "&gt;
&lt;div dir="ltr"&gt;
&lt;div class="gmail_default"&gt;This morning we connected the&amp;nbsp;Waveshare to an Arduino Uno and it worked immediately, so we know the display is good. We bought this one from Amazon:&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;b&gt;&lt;a href="https://www.amazon.com/dp/B07Z1WYRQH?psc=1&amp;amp;ref=ppx_yo2ov_dt_b_product_details" rel="noopener noreferrer" target="_blank" data-saferedirecturl="https://www.google.com/url?q=https://www.amazon.com/dp/B07Z1WYRQH?psc%3D1%26ref%3Dppx_yo2ov_dt_b_product_details&amp;amp;source=gmail&amp;amp;ust=1717169593973000&amp;amp;usg=AOvVaw0vhT0RWXdA059lR_7dc0vB"&gt;https://www.amazon.com/dp/B07Z1WYRQH?psc=1&amp;amp;ref=ppx_yo2ov_dt_b_product_details&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;And we&amp;#39;ve been using this DSHIELD, although we can&amp;#39;t seem to find in the Waveshare specs exactly what Controller the hardware uses (FPC A002 printed on ribbon cable):&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;i&gt;&lt;b&gt;west build -b nrf52840dk_nrf52840 -d build52840 &amp;nbsp;-- -DSHIELD=waveshare_epaper_gdeh0213b1&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;i&gt;our display is 250x122 and the shield seems to generate, something compatible (as far as I can tell)&lt;/i&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;
&lt;div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span&gt;width&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &amp;lt;&lt;span&gt;250&lt;/span&gt;&amp;gt;;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span&gt;height&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &amp;lt;&lt;span&gt;120&lt;/span&gt;&amp;gt;;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;Everything compiles without issue, but I was hoping you could give us more insight. We&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;u&gt;believe&lt;/u&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;the sample uses SPI3 and the following pinout, but we get nothing on the screen...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;nrf52840dk (default SPI3):&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;MISO (NC)&lt;/li&gt;
&lt;li&gt;MOSI P1.13&lt;/li&gt;
&lt;li&gt;SCK P1.15&lt;/li&gt;
&lt;li&gt;CS P1.12&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Waveshare Overlay:&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;DC P1.11&lt;/li&gt;
&lt;li&gt;RESET P1.10&lt;/li&gt;
&lt;li&gt;BUSY P1.08&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;Am I missing something obvious? Any insight is appreciated.&lt;/div&gt;
&lt;div&gt;thanks, mike&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&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/Waveshare-SPI3.png" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Zephyr_5F00_ePaper_5F00_Demo.zip"&gt;devzone.nordicsemi.com/.../Zephyr_5F00_ePaper_5F00_Demo.zip&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="yj6qo"&gt;&lt;/div&gt;
&lt;div class="adL"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="nH"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Waveshare e-paper display, spi, zephyr, nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/486223?ContentTypeID=1</link><pubDate>Tue, 28 May 2024 13:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e0e1f07-5022-4c1d-ae44-865188dde2b6</guid><dc:creator>Jenwhiz</dc:creator><description>&lt;p&gt;Hi, would you be able to confirm what pins you used to make this work. I used the D9-7 as specified in the waveshare_epaper_gdeh0213b1.overlay file for reset dc and busy. I added an overlay for the SPI pins, but can&amp;#39;t seem to get them to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Waveshare e-paper display, spi, zephyr, nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/485811?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 12:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a99dc3ca-de4c-48a8-8df9-5eaf974e9ed7</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="mej7000"]&lt;br /&gt;Can you confirm what SPI pins to use?[/quote]
&lt;p&gt;Regarding the SPI pins, you can use any free available gpio pin (consult with the PS for the 52840DK to see which GPIOs are not in use by default, which are used by some peripherals i.e not free to use without disabling something else) and the board files for the nRF52840dk located in&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/boards/nordic/nrf52840dk"&gt;&amp;lt;ncs_installation&amp;gt;zephyr/boards/nordic/nrf52840dk_nrf52840.dts&lt;/a&gt;&amp;nbsp;can be used to verify how it is set up by default.&lt;/p&gt;
[quote user="mej7000"] It looks like both SPI1 and SPI3 are enabled by default on the 52840dk[/quote]
&lt;p&gt;The SPI definitions enabled by default on the 52840DK can be seen here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/41095df79d11e081ea96d150fbe3dbd93f73af6c/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts#L206C1-L304C3"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/41095df79d11e081ea96d150fbe3dbd93f73af6c/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts#L206C1-L304C3&lt;/a&gt;, which includes those instances of the peripheral you mention.&lt;/p&gt;
&lt;p&gt;If you wish to change which GPIOs the SPI instances should use, you can change them using an overlay file as explained in lesson 2&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;of the fundamentals course&lt;/a&gt;&amp;nbsp;and showcased how it&amp;#39;s used in the&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/"&gt;intermediate course&lt;/a&gt;&amp;nbsp;(There is also a dedicated SPI course in lesson 5)&lt;/p&gt;
[quote user="mej7000"]I don&amp;#39;t see a custom device tree in your sample for the nrf52840, so I imagine it&amp;#39;s one of these default SPI definitions?[/quote]
&lt;p&gt;Helmut can probably answer this themselves as well, but in general yes, this is the case. Unless you have modified the board file directly, meaning that you&amp;#39;ve modified &amp;quot;a SDK file&amp;quot; and not a &amp;quot;project-dedicated board file&amp;quot; and there are no existing overlay files, then it is the default board file that is the one being used&lt;/p&gt;
&lt;p&gt;I strongly recommend you having a look at both the fundamentals and intermediate course to get a head start on your project using NCS/Zephyr in addition to the sample Helmut has created&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Waveshare e-paper display, spi, zephyr, nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/485805?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 12:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a8bff6d-8d38-4d6a-aec7-766f35b381a1</guid><dc:creator>mej7000</dc:creator><description>&lt;p&gt;Hi Helmut, Thanks for your reply!&lt;br /&gt;&lt;br /&gt;Can you confirm what SPI pins to use? It looks like both SPI1 and SPI3 are enabled by default on the 52840dk. I don&amp;#39;t see a custom device tree in your sample for the nrf52840, so I imagine it&amp;#39;s one of these default SPI definitions?&lt;/p&gt;
&lt;p&gt;btw, this is the Waveshare device I was able to source quickly if you have any additional insights:&amp;nbsp;&lt;br /&gt;&lt;a href="https://www.amazon.com/dp/B07Z1WYRQH?psc=1&amp;amp;ref=ppx_yo2ov_dt_b_product_details"&gt;https://www.amazon.com/dp/B07Z1WYRQH?psc=1&amp;amp;ref=ppx_yo2ov_dt_b_product_details&lt;/a&gt;&lt;br /&gt;&lt;br /&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/waveshare-spi.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Waveshare e-paper display, spi, zephyr, nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/484930?ContentTypeID=1</link><pubDate>Mon, 20 May 2024 15:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00d10910-1f4d-4f47-8596-b72b89397905</guid><dc:creator>khelmutlord</dc:creator><description>&lt;p&gt;Hey Michael,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve created this demo for the WaveShare epaper hat. This uses LVGL and the display subsystem in Zephyr and cycles between a couple of different QR codes. You could also use the basic LVGL demo in Zephyr but it may update too often for your display.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/hlord2000/Zephyr_ePaper_Demo"&gt;https://github.com/hlord2000/Zephyr_ePaper_Demo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that you will need to add a &amp;quot;shield&amp;quot; that specifies which display (and thus which controller IC) is being used:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.zephyrproject.org/latest/boards/shields/waveshare_epaper/doc/index.html"&gt;https://docs.zephyrproject.org/latest/boards/shields/waveshare_epaper/doc/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Helmut Lord&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>