<?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 does 52832 sdk16 change the button state</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61263/how-does-52832-sdk16-change-the-button-state</link><description>Hello Nordic team, 
 I&amp;#39;m getting started with BLE, using the 52832 SDK16 HID mouse example. In the example, clicking the button only moves 5 pixels. How can I move the cursor continuously. I tried to modify the example descriptor as a gamepad and found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 16 May 2020 14:41:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61263/how-does-52832-sdk16-change-the-button-state" /><item><title>RE: How does 52832 sdk16 change the button state</title><link>https://devzone.nordicsemi.com/thread/250296?ContentTypeID=1</link><pubDate>Sat, 16 May 2020 14:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7426cd3-8df7-4028-9252-32e3c352ceee</guid><dc:creator>Forwardfix</dc:creator><description>&lt;p&gt;Thanks for your suggestions, the problem has been solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does 52832 sdk16 change the button state</title><link>https://devzone.nordicsemi.com/thread/249943?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 11:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58fd4cd6-3f34-4ea7-9d3d-63e04259504c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Have you tried using the debugger to see what happens and if the application asserts?&amp;nbsp;&lt;/p&gt;
[quote user="Forwardfix"] I ca n’t find how to close the BSP button alone.[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure what you mean by this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does 52832 sdk16 change the button state</title><link>https://devzone.nordicsemi.com/thread/249799?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 16:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88030c75-e607-4f88-a530-36f797aaaf22</guid><dc:creator>Forwardfix</dc:creator><description>&lt;p&gt;Thank you for taking the time to answer. I tried to use app_button, which seems to conflict with the BSP button module. I ca n&amp;rsquo;t find how to close the BSP button alone. When I commented out buttons_leds_init (&amp;amp; erase_bonds); or err_code = bsp_init (BSP_INIT_LEDS | BSP_INIT_BUTTONS, bsp_event_handler) ; Changed to err_code = bsp_init (BSP_INIT_LEDS, bsp_event_handler); can work very well. And when I disconnect the power of nRF52 DK and connect it again, windows10 can&amp;#39;t connect, repeatedly disconnect, the android device can click to connect again.&lt;br /&gt;Try to modify sdk.config.h / BSP_BTN_BLE_ENABLED to 0, but it doesn&amp;#39;t seem to work&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;(Sorry, my English is not good, I need an interpreter&amp;nbsp;:D&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does 52832 sdk16 change the button state</title><link>https://devzone.nordicsemi.com/thread/249460?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 12:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e196a3c6-7106-4bee-8499-c5814d82e3a1</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The example generates only one event per time a button is pressed. Which means that you would have to check if the button is still pressed if you want the cursor to keep moving. One way is by calling&amp;nbsp;bsp_button_is_pressed() after a button pressed event is generated. You could then call&amp;nbsp;mouse_movement_send() as long as&amp;nbsp;bsp_button_is_pressed() returns true for that button. Just make sure that you don&amp;#39;t do it in interrupt context as it might interfere with Softdevice operations. I suggest that you rather set a flag in interrupt context after the button has been pressed and then check the flag in a loop in main context. Probably not the most elegant solution, but it should work&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>