<?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 remove BSP to implement long press and short press on the same button through app_button instead?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42877/how-to-remove-bsp-to-implement-long-press-and-short-press-on-the-same-button-through-app_button-instead</link><description>I recently found that BSP doesn&amp;#39;t allow you to differentiate between long press and short press on the same button. I also found the posts to implement the long/short press on the same button with app_button on the forums. I am having issues removing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Jan 2019 10:16:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42877/how-to-remove-bsp-to-implement-long-press-and-short-press-on-the-same-button-through-app_button-instead" /><item><title>RE: How to remove BSP to implement long press and short press on the same button through app_button instead?</title><link>https://devzone.nordicsemi.com/thread/168655?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 10:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d2e068d-9259-42ad-94c4-d6a4b6fc70bd</guid><dc:creator>Hakon</dc:creator><description>[quote user="embedded_newbie"]This is what I have so far, I have some more code for button_event_handler which details how my keys work but this isn&amp;#39;t compiling in itself.[/quote]
&lt;p&gt;Why are you not able to compile it? I just enabled app_gpiote in sdk_config and it was fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove BSP to implement long press and short press on the same button through app_button instead?</title><link>https://devzone.nordicsemi.com/thread/168314?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 17:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86141da5-4a6d-462b-a4e3-e405cd7ad99b</guid><dc:creator>embedded_newbie</dc:creator><description>&lt;p&gt;Hi, so let me be a bit more detailed with my issue. I want to use the buttons for two sets of functions - one for connection, disconnection, erase bonds, whitelist etc (like in the ble_hid_keyboard example) and for the other set I want to integrate media controls with the same button.&lt;br /&gt;&lt;br /&gt;The way the example is structured is that there is an advertising_buttons_configure() and a connection_buttons_configure() in bsp_btn_ble.c . The button_event_handler() in my main.c function using app_button I was able to write only for the media keys. I cannot figure out how to integrate advertising mode and connection mode and the code associated with that.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is what I have so far, I have some more code for button_event_handler which details how my keys work but this isn&amp;#39;t compiling in itself. I&amp;#39;m not able to completely disassociate bsp library from the main function which I have attached.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3288.main_5F00_working.c"&gt;devzone.nordicsemi.com/.../3288.main_5F00_working.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove BSP to implement long press and short press on the same button through app_button instead?</title><link>https://devzone.nordicsemi.com/thread/167675?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 14:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2578a7bf-880f-4325-b4ea-68c3d5496399</guid><dc:creator>Hakon</dc:creator><description>[quote user="embedded_newbie"]As far as I can see, when I remove it, functions with erase_bonds get messed up.[/quote]
&lt;p&gt;&amp;nbsp;It&amp;#39;s probably because these functions use the bsp library. Try to modify the functions so that they don&amp;#39;t make use of bsp at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove BSP to implement long press and short press on the same button through app_button instead?</title><link>https://devzone.nordicsemi.com/thread/167425?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 14:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d843f6d-a8bb-4e57-b714-aa185f70d648</guid><dc:creator>embedded_newbie</dc:creator><description>&lt;p&gt;I am using the ble_app_hids_keyboard example. As far as I can see, when I remove it, functions with erase_bonds get messed up. I found alternative ways to implement the app_button on an older SDK, but I want to keep the current implementation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove BSP to implement long press and short press on the same button through app_button instead?</title><link>https://devzone.nordicsemi.com/thread/167365?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 12:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a48f429-395f-4090-b426-b415b824174d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hey, are you working with the bsp example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>