<?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>NeoPixel on nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119801/neopixel-on-nrf5340</link><description>Hi, 
 Is it possible to use the Adafruit_NeoPixel library with the nRF5340 DK? I tried controlling an 8-pixel module using Zephyr’s led_strip example, but it didn’t work. I believe the pixels use the WS2812 protocol. 
 Has anyone successfully controlled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Mar 2025 13:06:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119801/neopixel-on-nrf5340" /><item><title>RE: NeoPixel on nRF5340</title><link>https://devzone.nordicsemi.com/thread/527635?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 13:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b46db3e-949d-43ac-a63e-4f98057b3a98</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I see. I guess one could then go through a lot of debugging with a logic analyzer, but trying out the tips mentioned by Jack here sounds like a plan.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NeoPixel on nRF5340</title><link>https://devzone.nordicsemi.com/thread/527369?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 12:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5032e86c-4deb-4ddb-af39-0a560aae0792</guid><dc:creator>PasVegan</dc:creator><description>&lt;p data-start="0" data-end="5"&gt;Hi,&lt;/p&gt;
&lt;p data-start="7" data-end="199" data-is-last-node="" data-is-only-node=""&gt;Sometimes, they did react by glitching and displaying the same color with different brightness on only one LED, while the others remained unaffected. It looks a lot like a communication error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NeoPixel on nRF5340</title><link>https://devzone.nordicsemi.com/thread/527365?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 12:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3173c14-1407-4b79-b7c6-a5a556ec3ef2</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi guys, glad&amp;nbsp;to see that the helping is already started.&lt;/p&gt;
&lt;p&gt;I am not so sure about the&amp;nbsp;&lt;span&gt;Adafruit_NeoPixel library, though in Zephyr we do have the led strip sample &lt;a href="https://docs.zephyrproject.org/latest/samples/drivers/led/led_strip/README.html"&gt;which should support the&amp;nbsp;WS2812 protocol&lt;/a&gt;, which you both seems aware of.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Though I am not as experienced with these led strips&amp;nbsp;as it seems that Jack here is so&amp;nbsp;taking his advice here sounds like a plan.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""] I tried controlling an 8-pixel module using Zephyr’s led_strip example, but it didn’t work.[/quote]
&lt;p&gt;Did they simply not react? Or how did it not work?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="PasVegan"]I am a beginner in the embedded world. [/quote]
&lt;p&gt;It feels a bit obligatory then to plug our &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;DevAcademy, which have a course for showing you the essentials for Zephyr and nRF Connect SDK.&lt;/a&gt; We also have courses on BLE etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NeoPixel on nRF5340</title><link>https://devzone.nordicsemi.com/thread/527274?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 21:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2bbd199-eb52-40ad-abf6-19a1abdeca36</guid><dc:creator>jacks60806</dc:creator><description>&lt;p&gt;For controlling the nRF pins directly I would look at the zephyr driver source code that is used.&lt;br /&gt;ncs\v2.9.0\zephyr\drivers\gpio\gpio_nrfx.c&lt;br /&gt;&lt;br /&gt;For an example of the driver using gpio I would look at &lt;br /&gt;ncs\v2.9.0\zephyr\drivers\led_strip\ws2812_gpio.c&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I also could be wrong and the gpio driver implementation might work.&lt;/p&gt;
&lt;p&gt;config WS2812_STRIP_GPIO&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool &amp;quot;WS2812 LED strip GPIO driver&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Only an Cortex-M inline assembly implementation for the nRF91, nRF51,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # nRF52 and nRF53 is supported currently.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would suggest looking at v2.9.0\zephyr\dts\bindings\led_strip\worldsemi,ws2812-gpio.yaml for the driver binding&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NeoPixel on nRF5340</title><link>https://devzone.nordicsemi.com/thread/527270?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 20:02:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9599904-3b92-49fa-b67b-0bd6ec5bca88</guid><dc:creator>PasVegan</dc:creator><description>&lt;p&gt;Thank you for your response. I am a beginner in the embedded world. Do you have any code to share that would accomplish this or something similar? If not, where should I start? Could you describe the steps to achieve this? Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NeoPixel on nRF5340</title><link>https://devzone.nordicsemi.com/thread/527258?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 17:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:549945ff-7b57-4a6a-ad30-04935f0ea706</guid><dc:creator>jacks60806</dc:creator><description>&lt;p&gt;From my experience you won&amp;#39;t be able to use the ws2812 gpio driver. I don&amp;#39;t know about the ws2812_i2s or ws2812_spi implementations. The WS2812 timing is tight enough you won&amp;#39;t be able to use the zephyr ws2812_gpio library and will need to create your own driver.&lt;br /&gt;&lt;br /&gt;&lt;a id="" href="https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/"&gt;https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The &amp;quot;TOH 0 code&amp;quot;, high voltage time maximum of 500ns is the problem. &lt;br /&gt;&lt;br /&gt;As a warning if you attempt to control using gpio, you won&amp;#39;t even be able to use the zephyr gpio_pin_set calls because minimum time to set and clear the pin exceeds 500ns. You&amp;#39;ll need to call the nRF gpio pin set/clear functions directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>