<?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>Trying to add LED calls to DK project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79835/trying-to-add-led-calls-to-dk-project</link><description>As a test of how to add a library to a project, I am trying to add access to this library http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/include/dk_buttons_and_leds.html to the light sensor example here https://devzone.nordicsemi.com/nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Sep 2021 15:37:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79835/trying-to-add-led-calls-to-dk-project" /><item><title>RE: Trying to add LED calls to DK project</title><link>https://devzone.nordicsemi.com/thread/330521?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 15:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a85d86d-ae1e-4e01-b947-dc3c3796c941</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;I agree!&lt;/p&gt;
&lt;p&gt;Thank you for the feedback, I will pass it along.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to add LED calls to DK project</title><link>https://devzone.nordicsemi.com/thread/330518?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 15:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19e9e735-24a0-4504-9780-09a11d49fc2f</guid><dc:creator>slight</dc:creator><description>&lt;p&gt;Thanks for the information. That gets me where I need to go, but I have to say that&amp;#39;s a pretty convoluted way of documenting things. I would think normally a developer would look for the library functionality they are seeking in the libraries area. Having no link from there to the required setting to bring the library into your project seems strange.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to add LED calls to DK project</title><link>https://devzone.nordicsemi.com/thread/330429?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 09:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfc67403-3406-4285-b5e3-99a6ec18b2ef</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The config you are looking for is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_DK_LIBRARY=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This site is useful for finding these settings: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/kconfig/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/kconfig/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/kconfig/CONFIG_DK_LIBRARY.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/kconfig/CONFIG_DK_LIBRARY.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Finding samples which include your desired functionality, examining the prj.conf, and looking up the configs in that kconfig reference site tends to be pretty effective.&lt;/p&gt;
&lt;p&gt;You can also use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/guides/kconfig/menuconfig.html"&gt;Interactive Kconfig Interfaces&lt;/a&gt;, to get an overview of the available settings.&lt;/p&gt;
&lt;p&gt;And, more directly, you can look at &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.6.1/lib/CMakeLists.txt"&gt;the CMakeLists.txt files&lt;/a&gt; nearby the source files you are looking to include, to see what the condition for including the file is. &lt;br /&gt;Then you can search for the config in the kconfig reference site I linked to learn more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>