<?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>Using Grove LED Socke Kit with nrf9160 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62764/using-grove-led-socke-kit-with-nrf9160-dk</link><description>Hello, 
 So I have the following setup. I have an nrf9160 DK board. With the following hardware. 
 A base shield: https://www.reichelt.com/ch/de/arduino-shield-base-shield-v2-ard-shd-base-v2-p191204.html?CTYPE=0&amp;amp;MWSTFREE=0&amp;amp;PROVID=2788&amp;amp;wt_gacha=52160633186_254281990522&amp;amp;PROVID</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 08:17:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62764/using-grove-led-socke-kit-with-nrf9160-dk" /><item><title>RE: Using Grove LED Socke Kit with nrf9160 DK</title><link>https://devzone.nordicsemi.com/thread/256121?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 08:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9501e208-235b-4f89-9f9f-ce4aa82a5d44</guid><dc:creator>Hakon</dc:creator><description>[quote user="Remo94"]Now I tried to bind the LED with the following code:&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure if the LED driver works for nrf91. As I said, the Zephyr blinky example is a good place to start. It shows how to interface with the LEDs on the DK directly using GPIO. It can be located in zephyr/samples/basic/blinky in the NCS installation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Grove LED Socke Kit with nrf9160 DK</title><link>https://devzone.nordicsemi.com/thread/256004?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 16:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5db82da-4d2d-438c-980b-791efac1013d</guid><dc:creator>Remo94</dc:creator><description>&lt;p&gt;Hi. Thanks for your answer.&lt;/p&gt;
&lt;p&gt;So I have the following overlay file. The grove light and bme sensor are working.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c2 {
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sda-pin = &amp;lt; 30 &amp;gt;;
	scl-pin = &amp;lt; 31 &amp;gt;;
    clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;;  
	
	/* The I2C address could be one of two, here 0x76 is assumed */
	bme280@77 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		reg = &amp;lt;0x77&amp;gt;;
		label = &amp;quot;BME280&amp;quot;;
	};
};

/ {
	gls {
		label = &amp;quot;GLS&amp;quot;;
		compatible = &amp;quot;grove,light&amp;quot;;
		io-channels = &amp;lt;&amp;amp;adc 0&amp;gt;;
	};

    led {
		label = &amp;quot;LED1&amp;quot;;
		compatible = &amp;quot;grove,led_socket&amp;quot;;
		io-channels = &amp;lt;&amp;amp;adc 1&amp;gt;;
	};

};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now I tried to bind the LED with the following code:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    struct device *led;
	led = device_get_binding(&amp;quot;LED1&amp;quot;);

	if (led == NULL) {
		printf(&amp;quot;led device not found.  aborting test.\n&amp;quot;);
		return;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It always prints &amp;quot;led device not found&amp;quot;. Do I use the wrong port?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Grove LED Socke Kit with nrf9160 DK</title><link>https://devzone.nordicsemi.com/thread/255951?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 11:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b382677-e34c-4fa5-9a0f-706cdb8e8e68</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;can you explain how you set up the hardware and also what code you are running on the nrf9160? There are plenty of samples that use LEDs, like the Zephyr blinky example, but they are configured to use the DK LEDs, so you would likely need to change the GPIO pins to the ones that your board uses.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>