<?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>custom_ble_service_example - Values written to NRF52DK odd behavior</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50963/custom_ble_service_example---values-written-to-nrf52dk-odd-behavior</link><description>Hi I am using the tutorial from https://github.com/bjornspockeli/custom_ble_service_example . I have uncommented some of the starter code from ble_cus.c. My understanding is that the code only turns on LED 4 (also assigned to gpio pin 20) on the NRF52480</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Aug 2019 06:41:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50963/custom_ble_service_example---values-written-to-nrf52dk-odd-behavior" /><item><title>RE: custom_ble_service_example - Values written to NRF52DK odd behavior</title><link>https://devzone.nordicsemi.com/thread/203946?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 06:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:257afef7-3f3d-494b-ae45-e12a5eefcfcf</guid><dc:creator>thoric_fish</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_ble_service_example - Values written to NRF52DK odd behavior</title><link>https://devzone.nordicsemi.com/thread/203939?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 06:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b4483fe-392d-456f-8546-eb6bd2a8b718</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Its because of this line:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_gpio_pin_toggle(LED_4);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You toggle the line regardless of data sent and then depending on the value that you send to it you either set the pin low or high if you send 0x01 or 0x02.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>