<?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>How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91069/how-do-i-extend-the-caf-led-module</link><description>I am currently using the CAF LED modules. This works fine with a mono-color LED or a tri-color RGB LED. question 1: My problem is that unfortunatly my hardware board has only Bi-color LED e.g. red+green. Is there any (hidden) configuration settings in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Feb 2023 17:08:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91069/how-do-i-extend-the-caf-led-module" /><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/412589?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 17:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebaf9e30-5c42-4a90-a1d0-1157665a2492</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;nope&lt;br /&gt;Although in newer ncs releases they added a&amp;nbsp;RGBW -color LED.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/412079?ContentTypeID=1</link><pubDate>Sat, 25 Feb 2023 10:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a26604a4-741e-4f76-9403-e8b668b1ca9f</guid><dc:creator>Mustafa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the bi-color feature implemented in CAF led module?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/394620?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 09:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f48e79-6f1a-406c-8289-f1dae7107341</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The developer was on holiday when this case was originally made, and unfortunately it took a while for work to begin on this feature.&lt;br /&gt;I have been told that he is working on adding this feature if possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/393713?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 14:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:446916aa-bb71-4498-8651-5656fa8c9fbf</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;any update on this?&lt;br /&gt;&lt;br /&gt;so people&amp;nbsp;can use a bi-color led on the pcb?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/382879?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 10:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cef420f-d1e1-4814-a4f9-96a00b19702e</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Thank you, I will pass it along when the developer returns.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/382865?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 09:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0f10e77-9a70-4c8d-ad6f-ac2644bcfeb6</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;Hi Oivind&lt;br /&gt;&lt;br /&gt;In the&amp;nbsp;file &amp;lt;ncs root&amp;gt;nrf\subsys\caf\led_effect.h &lt;br /&gt;there is a multi-channel color count &lt;br /&gt;#define &lt;/span&gt;&lt;span&gt;_CAF_LED_COLOR_CHANNEL_COUNT&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;So I&amp;nbsp;can undef and redefine this into the value 2 (for a bi-color led)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;But unfortunaltly in the file &amp;lt;ncs root&amp;gt;nrf\subsys\caf\modules\leds.c&lt;br /&gt;the above define is not used&amp;nbsp; (but&amp;nbsp; replaced by a hardcoded value)&lt;br /&gt; __ASSERT_NO_MSG((led-&amp;gt;color_count == 1) || (led-&amp;gt;color_count == 3));&lt;br /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;It seems this is technical debt to be solved to support improved flexibility for multi-channel colored LEDs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/382637?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 10:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c1e6b6-003e-4c31-b4b2-7b188617e0ee</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Ok, the developer is currently on holiday, and will look into a possible solution when he returns next week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/382387?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 07:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf4e0d7b-886f-4733-8a51-8982198a5b0d</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;&lt;span&gt;I did made a &amp;quot;custom SDK&amp;quot; this is a typical so called zephyr extended library contains re-usable modulair flexible components.&lt;br /&gt;&lt;br /&gt;The components are my (custom) building blocks for several applications I made in different (client) projects.&lt;br /&gt;Each component has a kconfig and cmakelist.txt next to source code file and header file.&lt;br /&gt;&lt;br /&gt;Depending on the board configuration and the build configuration in the project &lt;br /&gt;the components will be enable or disabled based upon the multiple boards definition in the project.&lt;br /&gt;&lt;br /&gt;I do like run / test my application on multiple vendor boards (stm32F411 nucleo / nordic 52840DK&amp;nbsp;and a nxp board. ;-)&lt;br /&gt;&lt;br /&gt;So what i try to solve is the limitations of the CAF LED module in a correct manor&amp;nbsp;without adapting the source code of the CAF LED module (and button module)&amp;nbsp;each time Nordic release a new ncs version.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/382342?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 19:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a6bf106-0db4-4d86-8d13-de5d41b54df8</guid><dc:creator>nRF5xFanboy</dc:creator><description>&lt;p&gt;Hello Oivind&lt;br /&gt; &lt;br /&gt;When I&amp;nbsp;run&amp;nbsp;the sample, after I adapt the board&amp;nbsp;configuration with a Red + green pwm led&amp;nbsp;output)&lt;br /&gt;&lt;br /&gt;The&amp;nbsp;debugger hits&amp;nbsp;the assert in the code&amp;nbsp;at line 186&amp;nbsp; (it looks as intended by design to support 1 or 3 colors only :-)&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;__ASSERT_NO_MSG&lt;/span&gt;&lt;span&gt;((led-&amp;gt;color_count ==&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;) || (led-&amp;gt;color_count ==&amp;nbsp;&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;));&lt;br /&gt;&lt;br /&gt;Hence my question to proper adapt the&amp;nbsp;Nordic module without&amp;nbsp; migrate each time Nordic release a new ncs version.&lt;br /&gt;&lt;br /&gt;kind regards,&lt;br /&gt;&amp;nbsp; &amp;nbsp;nRF5xFanBoy&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I extend the CAF LED module?</title><link>https://devzone.nordicsemi.com/thread/382248?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 11:29:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5067643d-416f-4242-bcc8-01cdd8a97c14</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is unfortunately not possible to &amp;quot;disable&amp;quot; one of the colors. I have asked one of the developers whether this is something we can add support for. I have not tested this myself, but have you tried implementing it as 2 monochromatic LEDs?&lt;/p&gt;
&lt;p&gt;For your second question, what are you trying to do exactly? What is the issue you are trying to solve? What do you mean by &amp;quot;custom SDK&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>