<?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>LED Strip (Driver chip WS2812b) API for nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88018/led-strip-driver-chip-ws2812b-api-for-nrf52840</link><description>Hi I am currently using an nRF52840 SoC and I already have both I2C buses in use, as my application requires multiple I2C sensors with the same address. That means I can&amp;#39;t use the SPI peripheral. However, I also need to control some led strips (ws2812b</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 May 2022 11:14:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88018/led-strip-driver-chip-ws2812b-api-for-nrf52840" /><item><title>RE: LED Strip (Driver chip WS2812b) API for nRF52840</title><link>https://devzone.nordicsemi.com/thread/368300?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 11:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:017aa536-5cdf-4b22-81fe-f9cfb5a9dcda</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]edit: well, I just realize that nRF52840 SoC has 3 SPI &lt;span&gt;peripheral so I can&amp;#39;t use the SPI1, SPI2 but can use the SPI3&amp;nbsp;peripheral right?&lt;/span&gt;[/quote]
&lt;p&gt;Actually, nRF52840 have &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/spim.html#topic"&gt;4 SPI peripheral instances&lt;/a&gt; (SPI(M)0, SPI(M)1, SPI(M)2, and SPIM3). You should be able to use SPI(M)0 or SPIM3.&lt;/p&gt;
&lt;p&gt;There also exist drivers using &lt;a href="https://github.com/NordicPlayground/nrf52-ble-multi-link-multi-role/tree/master/common/drv_ws2812"&gt;PWM&lt;/a&gt;&amp;nbsp;and &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/driving-ws2812b-leds-using-i2s-on-the-nordic-nrf52"&gt;I2S&lt;/a&gt;, but you likely need to adapt/integrate these with nRF Connect SDK yourself.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>