<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: QN9080-001-M17-Button function settings in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-001-M17-Button-function-settings/m-p/1297288#M11285</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;你创建了好几个post，我们就在这个post下讨论吧。&lt;/P&gt;
&lt;P&gt;关于按键含义&lt;SPAN&gt;gKBD_EventLongPB1_c和gKBD_EventHoldPB1_c，前者就是按的时间长一点，后者是按着不放。按键的检测是在keyboard.c的KeyScan里实现的，里面有判断语句&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(mLongKeyCount &amp;gt;= gKbdLongKeyIterations_c) &lt;BR /&gt;{&lt;BR /&gt;keyBase = gKBD_EventLongPB1_c;&lt;BR /&gt;}&lt;BR /&gt;if(mLongKeyCount &amp;gt;= gKbdVeryLongKeyIterations_c)&lt;BR /&gt;{&lt;BR /&gt;keyBase = gKBD_EventVeryLongPB1_c;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;gKbdLongKeyIterations_c这个宏定义是定义的按的时间长短，gKbdLongKeyIterations宏定义为20ms，gKbdVeryLongKeyIterations_c定义为160ms，你要实现长时间按键应该是改这两个值，产生对应的case，然后在BleApp_HandleKeys实现这个情况&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 02:46:12 GMT</pubDate>
    <dc:creator>nxf56274</dc:creator>
    <dc:date>2021-06-24T02:46:12Z</dc:date>
    <item>
      <title>QN9080-001-M17-Button function settings</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-001-M17-Button-function-settings/m-p/1284398#M11204</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I don't quite understand which of the following functions can set the duration of button pressing.&lt;/P&gt;&lt;P&gt;I want to change the button setting in the red circle to one that takes a long time to press.&lt;/P&gt;&lt;P&gt;For example, after I press for 5 seconds, the following program will be executed&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5LB4GUQPI7EY2FE]6BF6MN8.png" style="width: 546px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145838i45FFAE7765AB7C33/image-size/large?v=v2&amp;amp;px=999" role="button" title="5LB4GUQPI7EY2FE]6BF6MN8.png" alt="5LB4GUQPI7EY2FE]6BF6MN8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 01:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-001-M17-Button-function-settings/m-p/1284398#M11204</guid>
      <dc:creator>1758793535</dc:creator>
      <dc:date>2021-05-30T01:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080-001-M17-Button function settings</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-001-M17-Button-function-settings/m-p/1297288#M11285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;你创建了好几个post，我们就在这个post下讨论吧。&lt;/P&gt;
&lt;P&gt;关于按键含义&lt;SPAN&gt;gKBD_EventLongPB1_c和gKBD_EventHoldPB1_c，前者就是按的时间长一点，后者是按着不放。按键的检测是在keyboard.c的KeyScan里实现的，里面有判断语句&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(mLongKeyCount &amp;gt;= gKbdLongKeyIterations_c) &lt;BR /&gt;{&lt;BR /&gt;keyBase = gKBD_EventLongPB1_c;&lt;BR /&gt;}&lt;BR /&gt;if(mLongKeyCount &amp;gt;= gKbdVeryLongKeyIterations_c)&lt;BR /&gt;{&lt;BR /&gt;keyBase = gKBD_EventVeryLongPB1_c;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;gKbdLongKeyIterations_c这个宏定义是定义的按的时间长短，gKbdLongKeyIterations宏定义为20ms，gKbdVeryLongKeyIterations_c定义为160ms，你要实现长时间按键应该是改这两个值，产生对应的case，然后在BleApp_HandleKeys实现这个情况&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 02:46:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-001-M17-Button-function-settings/m-p/1297288#M11285</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-06-24T02:46:12Z</dc:date>
    </item>
  </channel>
</rss>

