<?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 to blink the &amp;quot;BSP BOARD LED 1&amp;quot;  by the &amp;quot;Multilink Central&amp;quot; exemple.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24130/how-to-blink-the-bsp-board-led-1-by-the-multilink-central-exemple</link><description>I have the devlopment kit pca 10028 with nrf51422 
 Thank you very much for the answer.
MC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Aug 2017 10:44:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24130/how-to-blink-the-bsp-board-led-1-by-the-multilink-central-exemple" /><item><title>RE: how to blink the "BSP BOARD LED 1"  by the "Multilink Central" exemple.</title><link>https://devzone.nordicsemi.com/thread/95008?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 10:44:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dfee95e-77bc-4d12-9cb3-139b93dfb292</guid><dc:creator>mc</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Maybe i have not good declare my question.
It is for the exemple &amp;quot;ble-app Multilink central&amp;quot;
I need that the CENTRAL-CONNECTED-LED   BSP_BOARD_LED_1, &lt;strong&gt;toggle&lt;/strong&gt; on  &amp;quot;ble-app Multilink central&amp;quot;
when   case BLE_GAP_EVT_CONNECTED.
And &lt;strong&gt;not toggle&lt;/strong&gt; when case  BLE_GAP_EVT_DISCONNECTED&lt;/p&gt;
&lt;p&gt;When possible please as  exemple for BSP und exemple for nrf_gpio
Thnak you very much!
MC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to blink the "BSP BOARD LED 1"  by the "Multilink Central" exemple.</title><link>https://devzone.nordicsemi.com/thread/95011?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 08:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4d883a2-38c2-46a1-ae76-847215506cd0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you should initialize your LED like below&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void leds_init(void)

{
   nrf_gpio_cfg_output(CENTRAL_CONNECTED_LED);
   nrf_gpio_pin_set(CENTRAL_CONNECTED_LED); // this will switch OFF led on pca10028

}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then when you get connected and disconnected events then you should set the LED state again in the on_ble_evt() function in the SDK ble_peripheral examples (assuming that your device is peripheral)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void on_ble_evt(ble_evt_t * p_ble_evt)
{
    uint32_t err_code;

    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
        case BLE_GAP_EVT_CONNECTED:
            NRF_LOG_INFO(&amp;quot;Connected\r\n&amp;quot;);
//            err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
//            APP_ERROR_CHECK(err_code);
               nrf_gpio_pin_clear(CENTRAL_CONNECTED_LED); // this will turn on the LED on pca10028
            m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;
            break; // BLE_GAP_EVT_CONNECTED

        case BLE_GAP_EVT_DISCONNECTED:
            NRF_LOG_INFO(&amp;quot;Disconnected\r\n&amp;quot;);

//            err_code = bsp_indication_set(BSP_INDICATE_ALERT_OFF);
//            APP_ERROR_CHECK(err_code);
            nrf_gpio_pin_set(CENTRAL_CONNECTED_LED); // this will turn OFF the LED on pca10028
            m_conn_handle = BLE_CONN_HANDLE_INVALID;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to blink the "BSP BOARD LED 1"  by the "Multilink Central" exemple.</title><link>https://devzone.nordicsemi.com/thread/95010?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 15:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bd16a1d-7546-4dad-9ce5-894cfc538588</guid><dc:creator>mc</dc:creator><description>&lt;p&gt;Hello Aryan
i have do it with nrf_gpio.. like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    #define CENTRAL_CONNECTED_LED  22

static void leds_init(void)

{
   nrf_gpio_cfg_output(CENTRAL_CONNECTED_LED);
   nrf_gpio_pin_clear(CENTRAL_CONNECTED_LED);
   while(1)
   {
       nrf_gpio_pin_toggle(CENTRAL_CONNECTED_LED);
       nrf_delay_ms(1000);
   }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The led now blink  evry time, but i need that the
led blink only when the periheral is connected.&lt;/p&gt;
&lt;p&gt;Sorry about my english.
is possible that you send me  a exemple for BSP
und exemple for nrf_gpio.
please with exactly where i must write the code.&lt;/p&gt;
&lt;p&gt;thank you very much
mc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to blink the "BSP BOARD LED 1"  by the "Multilink Central" exemple.</title><link>https://devzone.nordicsemi.com/thread/95009?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 09:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d2ffaee-0efe-458a-8c90-bbf806b815c2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;do you want to use BSP library for this? or is it ok if you can just use the nrf_gpio_pin_write API and control the LED_1 which is connected to  pin number 21&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>