<?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>(NCS / Zephyr) WS2812 Interrupt Activity -- Turn off Bluetooth Radio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78819/ncs-zephyr-ws2812-interrupt-activity----turn-off-bluetooth-radio</link><description>I’m getting some strange behavior after repurposing the WS2812 driver sample with the following code. Note that my code has Bluetooth enabled. It seems like it might be some sort of invalid interrupt activity or something. As the video below shows there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Aug 2021 11:13:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78819/ncs-zephyr-ws2812-interrupt-activity----turn-off-bluetooth-radio" /><item><title>RE: (NCS / Zephyr) WS2812 Interrupt Activity -- Turn off Bluetooth Radio</title><link>https://devzone.nordicsemi.com/thread/326153?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 11:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a299bb5c-d3d6-45bd-a36e-b5eb2f74dc31</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Does this seem like a reasonable assumption?&amp;nbsp;[/quote]
&lt;p&gt;Yes, it could be that the Bluetooth activity interrupts your&amp;nbsp;led_strip_update_rgb() function, and that causes some strange LED behavior.&lt;/p&gt;
[quote user=""]If so, is there an easy way to turn off the Bluetooth radio activity before calling the led_strip_update function?&amp;nbsp;[/quote]
&lt;p&gt;Try to use&amp;nbsp;&lt;span&gt;led_strip_update_rgb() inside a MPSL timeslot,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.6.1/samples/mpsl/timeslot"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v1.6.1/samples/mpsl/timeslot&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrfxlib/mpsl/doc/timeslot.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrfxlib/mpsl/doc/timeslot.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are no Bluetooth and radio activity when you are in the timeslot.&lt;/p&gt;
&lt;p&gt;Alternatively,&amp;nbsp; &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrfxlib/mpsl/doc/radio_notification.html"&gt;r&lt;/a&gt;&lt;span&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrfxlib/mpsl/doc/radio_notification.html"&gt;adio notifications&lt;/a&gt; could perhaps&amp;nbsp;also be used to decide when you call&amp;nbsp;led_strip_update_rgb().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>