<?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>When to use DK Buttons and LEDs versus CAF Led Module?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91204/when-to-use-dk-buttons-and-leds-versus-caf-led-module</link><description>Hello Reader, I noticed two almost similar modules &amp;quot; DK buttons and LEDs&amp;quot; library and the &amp;quot;CAF LED &amp;amp; Button&amp;quot; library (or module). What is the difference between DK buttons and LEDs module and the CAF LED &amp;amp; Button modules 
 Is there conceptually or design</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Aug 2022 13:03:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91204/when-to-use-dk-buttons-and-leds-versus-caf-led-module" /><item><title>RE: When to use DK Buttons and LEDs versus CAF Led Module?</title><link>https://devzone.nordicsemi.com/thread/383079?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 13:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a4051ed-d6e7-46ca-9fb5-8833d068c701</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;I feel OK if you close this ticket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When to use DK Buttons and LEDs versus CAF Led Module?</title><link>https://devzone.nordicsemi.com/thread/383078?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 13:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5288eb80-a7f2-496b-bf07-eb2e95011562</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Thanks&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/oivind"&gt; &amp;Oslash;ivind&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;I agree &amp;quot;&lt;em&gt;no correct answer&lt;/em&gt;.&amp;quot; &lt;br /&gt;&lt;br /&gt;It&amp;#39;s about the &lt;span style="text-decoration:underline;"&gt;intended design&lt;/span&gt; in mind when these modules where created. &lt;br /&gt;Unfortunately the intended design of both modules is not written clearly nor completely in the module documentation. &lt;/p&gt;
&lt;p&gt;I think this is something to improve when it come to wring&amp;nbsp;documentation.&lt;br /&gt;This would definitely help the reader in analyze &amp;amp; designing her/his&amp;nbsp;application.&lt;br /&gt;There is a&amp;nbsp;always a brainstorming &amp;amp; choice picking moment&amp;nbsp;selecting the candidate libraries in some overview and picking the best solution for the problem.&lt;br /&gt;&lt;br /&gt;So yes the CAF is even-driven&amp;nbsp;&amp;nbsp;&lt;br /&gt;So the DK buttons and leds are more simple (read: not event-driven)&lt;br /&gt;but what other differences are there ....&amp;nbsp;&lt;br /&gt;- which&amp;nbsp;library is faster&amp;nbsp;(e.g. latency?)&lt;br /&gt;- which library is drains the batter?&amp;nbsp;&lt;br /&gt;- which uses interrupt?&lt;br /&gt;- which is thread safe?&lt;br /&gt;- which is lock free?&lt;br /&gt;&lt;br /&gt;Just some design question the documentation does not answer ....&lt;br /&gt;&lt;br /&gt;Yeah for now&amp;nbsp;I stick with the CAF implementation in my&amp;nbsp;aplication and build a few new CAF libraries myself.&lt;br /&gt;&lt;br /&gt;best regards,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nRF5xFanBoy&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When to use DK Buttons and LEDs versus CAF Led Module?</title><link>https://devzone.nordicsemi.com/thread/382875?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 10:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfa55cb6-43de-4799-b791-e91e2b518ed6</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;One of the biggest advantages of CAF is when your application is using multiple CAF modules, and modules need to react to events from other modules. CAF tries to simplify and provide a common architecture for this communication. CAF implements the Application Event Manager for this purpose, so it&amp;#39;s documentation may also be insightful:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/others/app_event_manager.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/others/app_event_manager.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is no &amp;quot;correct&amp;quot; answer, and you may prefer to use DK buttons and LEDs instead, or another solution entirely.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When to use DK Buttons and LEDs versus CAF Led Module?</title><link>https://devzone.nordicsemi.com/thread/382849?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 08:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6f8047a-29af-4891-865b-2fe078ba4949</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Oivind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The documentation lacks the answer on my question:&lt;br /&gt;&lt;em&gt;Is there conceptually or design wise any specific use-case (or situation) to use either as preferred solution?&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nRF5XFanBoy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When to use DK Buttons and LEDs versus CAF Led Module?</title><link>https://devzone.nordicsemi.com/thread/382832?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 07:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11166bb6-73a0-4b71-a331-8fa7e0ef8126</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;DK buttons and LEDs is a much simpler module overall. Why you might want to use CAF instead is explained in the CAF overview:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/caf/caf_overview.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/caf/caf_overview.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you have any questions regarding the CAF description, feel free to ask!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>