<?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>Controlling WS2812 LEDs with NCS on nRF52832DK with gpios (not SPI)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88603/controlling-ws2812-leds-with-ncs-on-nrf52832dk-with-gpios-not-spi</link><description>I have downloaded the WS2812 driver example and have successfully been using the nRF52832 DK to control these lights with SPI. I am ready to start developing on a custom board (still nRF52832) . The only issue is that the LEDs are not connected to an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2022 13:14:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88603/controlling-ws2812-leds-with-ncs-on-nrf52832dk-with-gpios-not-spi" /><item><title>RE: Controlling WS2812 LEDs with NCS on nRF52832DK with gpios (not SPI)</title><link>https://devzone.nordicsemi.com/thread/372586?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 13:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d092852-5d0b-4603-9052-584047d21c78</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That option is only supported on nRF51&amp;nbsp;&lt;a title="https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/led_strip/kconfig.ws2812#l29" href="https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/led_strip/Kconfig.ws2812#L29" rel="noopener noreferrer" target="_blank"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/led_strip/Kconfig.ws2812#L29&lt;/a&gt;. &amp;#39;&amp;#39;The GPIO driver does bit-banging with inline assembly and is not available on all SoC&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;You are using arduino_spi_arduino_spi: &amp;amp;spi2, so just need to configure the SPI pin you want to use in the overlay.&lt;/p&gt;
&lt;p&gt;For example.&lt;/p&gt;
&lt;p&gt;&amp;amp;arduino_spi {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-spim&amp;quot;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; sck-pin = &amp;lt;25&amp;gt;;&lt;br /&gt; mosi-pin = &amp;lt;28&amp;gt;;&lt;br /&gt; miso-pin = &amp;lt;24&amp;gt;;&lt;br /&gt; cs-gpios = &amp;lt;&amp;amp;arduino_header 16 GPIO_ACTIVE_LOW&amp;gt;; /* D10 */&lt;br /&gt; led_strip: ws2812@0 {&lt;br /&gt; compatible = &amp;quot;worldsemi,ws2812-spi&amp;quot;;&lt;br /&gt; label = &amp;quot;WS2812&amp;quot;;&lt;/p&gt;
&lt;p&gt;/* SPI */&lt;br /&gt; reg = &amp;lt;0&amp;gt;; /* ignored, but necessary for SPI bindings */&lt;br /&gt; spi-max-frequency = &amp;lt;SPI_FREQ&amp;gt;;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;/* WS2812 */&lt;br /&gt; chain-length = &amp;lt;16&amp;gt;; /* arbitrary; change at will */&lt;br /&gt; spi-one-frame = &amp;lt;ONE_FRAME&amp;gt;;&lt;br /&gt; spi-zero-frame = &amp;lt;ZERO_FRAME&amp;gt;;&lt;br /&gt; };&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;The SPI instances (for example SP1, SPI0) you dnt need to use can select them as disable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling WS2812 LEDs with NCS on nRF52832DK with gpios (not SPI)</title><link>https://devzone.nordicsemi.com/thread/371433?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 13:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:347793f3-1873-4cb3-b0a2-5fc53bf9b74c</guid><dc:creator>ZackBoi</dc:creator><description>&lt;p&gt;No. Actually I was wondering if I am able to control the LEDs with a pin that is not a SPI MOSI pin. As you pointed out in the overlay file, one of these MOSI pins is P0.23. Looking at the nRF52DK_832 .dts file below, it looks like P0.26 and P0.30 are also MOSI pins. Is there any way to control WS2812 LED without these any of these MOSI pins on the nRF52832 DK? Specifically maybe pin P0.28? Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi0 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	/* Cannot be used together with i2c0. */
	/* status = &amp;quot;okay&amp;quot;; */
	sck-pin = &amp;lt;27&amp;gt;;
	mosi-pin = &amp;lt;26&amp;gt;;
	miso-pin = &amp;lt;28&amp;gt;;
};

&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;31&amp;gt;;
	mosi-pin = &amp;lt;30&amp;gt;;
	miso-pin = &amp;lt;29&amp;gt;;
};

arduino_spi: &amp;amp;spi2 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;25&amp;gt;;
	mosi-pin = &amp;lt;23&amp;gt;;
	miso-pin = &amp;lt;24&amp;gt;;
	cs-gpios = &amp;lt;&amp;amp;arduino_header 16 GPIO_ACTIVE_LOW&amp;gt;; /* D10 */
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling WS2812 LEDs with NCS on nRF52832DK with gpios (not SPI)</title><link>https://devzone.nordicsemi.com/thread/371330?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 09:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3451b421-c0d7-4769-bcc5-e2e4dbd034e7</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you set correct pin number in accordance to your board for MOSI pin?&lt;/p&gt;
&lt;p&gt;We have overlay file for led_ws2812&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/v2.6.1-rc2/samples/drivers/led_ws2812/boards/nrf52dk_nrf52832.overlay"&gt;zephyr/nrf52dk_nrf52832.overlay at v2.6.1-rc2 · zephyrproject-rtos/zephyr · GitHub&lt;/a&gt;&amp;nbsp;you can look at.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Controlling WS2812 LEDs with NCS on nRF52832DK with gpios (not SPI)</title><link>https://devzone.nordicsemi.com/thread/370954?ContentTypeID=1</link><pubDate>Sat, 04 Jun 2022 15:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d94c6c35-2125-4474-b361-efa7b3434e3c</guid><dc:creator>ZackBoi</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2022_2D00_06_2D00_04-at-11.27.54-AM.png" /&gt;&lt;/p&gt;
&lt;p&gt;I found this in the documentation&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/2.6.0/samples/drivers/led_ws2812/README.html" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;. Not sure exactly how to implement this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>