<?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>Making nrf52840 buttons high/ true automatically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67356/making-nrf52840-buttons-high-true-automatically</link><description>Hello Nordic people, 
 Is anyone knows how to set the Nrf52840 buttons high automatically without human interface while button press? 
 Any examples or Related API are available?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Oct 2020 07:11:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67356/making-nrf52840-buttons-high-true-automatically" /><item><title>RE: Making nrf52840 buttons high/ true automatically</title><link>https://devzone.nordicsemi.com/thread/276343?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 07:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:421ec142-7f72-4b83-8bb0-841766b9c62a</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi manoj97,&lt;br /&gt;&lt;br /&gt;Where you able to find a solution? If so pleas post your solution to help others.&lt;br /&gt;If not then pleas explain what further problems you have.&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making nrf52840 buttons high/ true automatically</title><link>https://devzone.nordicsemi.com/thread/275626?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 12:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53eb8447-a884-42cc-8013-e5e33ad22f87</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;To explain further.&lt;/p&gt;
&lt;p&gt;For manual operation, you presumably have something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if( button_is_pressed )
{
   change_screen();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So, rather than trying to mess about with&amp;nbsp;simulating the button press, why not simply call &lt;strong&gt;change_screen()&amp;nbsp;&lt;/strong&gt; ?&lt;/p&gt;
&lt;p&gt;That makes for far clearer &amp;amp; cleaner programming.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making nrf52840 buttons high/ true automatically</title><link>https://devzone.nordicsemi.com/thread/275582?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 11:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec912537-7dff-40b0-a9fe-173ced22c01b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;What would be the point in that?&lt;/p&gt;
&lt;p&gt;Rather than doing that to indirectly get the action you want, why not just do it directly?&lt;/p&gt;
&lt;p&gt;Anyhow, have you studied the relevant section in the Product Specification:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=4_0_0_5_8"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=4_0_0_5_8&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also the DK deocumentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/hw_buttons_leds.html?cp=4_0_4_7_6"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/hw_buttons_leds.html?cp=4_0_4_7_6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that it tells you the buttons are active-low; ie, pressing a button takes it low - not high.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1603106994296v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making nrf52840 buttons high/ true automatically</title><link>https://devzone.nordicsemi.com/thread/275577?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 11:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb8f63d-481d-4c29-b29b-0e707a032f39</guid><dc:creator>manoj97</dc:creator><description>&lt;p&gt;Yeah I can change the screen programmatically, But I&amp;#39;m curious to know whether we can enable the button high via programming if yes how?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making nrf52840 buttons high/ true automatically</title><link>https://devzone.nordicsemi.com/thread/275575?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 11:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a975c62-1379-45a4-ac19-10dab265e5f7</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Still not clear why you&amp;#39;d want to do that.&lt;/p&gt;
&lt;p&gt;Surely, if you want the screen to change programmatically, you just call whatever code would get&amp;nbsp; activated by the button press ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making nrf52840 buttons high/ true automatically</title><link>https://devzone.nordicsemi.com/thread/275574?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 11:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb672447-1c69-4465-9d2f-eb4e1c8e139b</guid><dc:creator>manoj97</dc:creator><description>&lt;p&gt;simple @awneil&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Example Initially I have initialized OLED, I have programmed in a way that&amp;nbsp;for screen change, I have to press the button on DK board one - one time.&lt;/p&gt;
&lt;p&gt;Instead of impressing each time, is there any possibility to high the button automatically through an API?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Making nrf52840 buttons high/ true automatically</title><link>https://devzone.nordicsemi.com/thread/275571?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 10:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cce3c44-df48-4a0d-8ef0-3a137e730d3d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand the question - please explain.&lt;/p&gt;
&lt;p&gt;Do you mean you&amp;#39;re trying to &lt;em&gt;simulate&lt;/em&gt; a person pressing a button? For testing, perhaps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>