<?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>Softblink in NCS/Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104487/softblink-in-ncs-zephyr</link><description>Hi, 
 I&amp;#39;m asking about the softblink library that was in the NRF5 SDK. Is there anything equivalent that nordic has provided for the new NCS/Zephyr SDK? 
 What I liked about it is that it could fade an LED up/down with minimal CPU intervention (I think</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Oct 2023 15:47:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104487/softblink-in-ncs-zephyr" /><item><title>RE: Softblink in NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/449635?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 15:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd7f2bf6-8ae6-4b93-87d3-aad4b93ebd6c</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;That code was really useful thanks very much for that. It&amp;#39;s behaving now exactly how I I wanted it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softblink in NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/449543?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 11:43:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:451ddde3-60a4-483d-9823-ea753a7412ad</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve quickly put together an example using the NRFX PWM driver in case it helps, please see attached.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4848.hello_5F00_world_5F00_pwm_5F00_softblink.zip"&gt;devzone.nordicsemi.com/.../4848.hello_5F00_world_5F00_pwm_5F00_softblink.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Much of the code was copied from the pwm peripheral example in the nRF5 SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softblink in NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/449533?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 11:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaed26b2-e79f-4947-a760-69887b6969a2</guid><dc:creator>john23094</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Power is a concern but CPU&amp;nbsp;availablility is the highest concern at the moment.&lt;/p&gt;
&lt;p&gt;I actually read the source code for softblink lib. and saw that actually it was just using a timer and ISR to step and increase&amp;nbsp; the duty cycle which is actually a lot more inefficient than I thought it was.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes I actually went on to read the PWM module doc. directly and I can do what&amp;nbsp;I want by configuring it, so I will use it directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softblink in NCS/Zephyr</title><link>https://devzone.nordicsemi.com/thread/449527?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 11:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a677cecf-4a9b-44d2-9812-ad71b6fd60ea</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There isn&amp;#39;t a soft blink implementation in Zephyr that does not require CPU involvement as far as I can tell. Is power consumption a concern in your application? If not, I think the easiest solution will be to implement it with PWM using the nRFX api directly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>