<?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>The button does not work on the custom board?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115154/the-button-does-not-work-on-the-custom-board</link><description>I am testing ble_app_hid_keybpard of SDK17.1.0 using nRF52-DK board. After running, if BLE connection is not made, it enters Sleep_Mode after slow advertise. At this time, if I press one of the 4 buttons on the DK board, it wakes up, executes main() again</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Oct 2024 12:42:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115154/the-button-does-not-work-on-the-custom-board" /><item><title>RE: The button does not work on the custom board?</title><link>https://devzone.nordicsemi.com/thread/504526?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 12:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33522c54-3735-4004-9312-8c107c29f83b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;You can read about the expected behavior of this example here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/ble_sdk_app_hids_keyboard.html"&gt;https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/ble_sdk_app_hids_keyboard.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;Question 2.&lt;/p&gt;
&lt;p&gt;The DK board is implemented so that pressing the button connects to Low (GND) in hardware.&lt;/p&gt;
&lt;p&gt;However, my custom board is implemented so that pressing the button connects to High (+3.3V). So the button does not work. Where should I modify the firmware?&lt;/p&gt;[/quote]
&lt;p&gt;You need to set the&amp;nbsp;BUTTONS_ACTIVE_STATE in the board file, but there is also this bug here you would need to fix it seems:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99942/when-entering-a-key-multiple-events-occur-at-once/426817"&gt;RE: When entering a key, multiple events occur at once.&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>