<?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>Enum change with pushbuttons</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66968/enum-change-with-pushbuttons</link><description>Hi , i am using the nrf52dk and i have a switch statement that depending on the case there is a set of enum and i would like to utalised the push button to increase/decrease the sequence of the enum. 
 however i do not want to use the bsp as im having</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Oct 2020 10:12:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66968/enum-change-with-pushbuttons" /><item><title>RE: Enum change with pushbuttons</title><link>https://devzone.nordicsemi.com/thread/274560?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 10:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e36b8ae-eef8-4058-9f31-420bd348daad</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;Hi thanks for your reply, I have solved the issue now.&lt;/p&gt;
&lt;p&gt;however just to elaborate my problem,&lt;/p&gt;
&lt;p&gt;i had an application whereby I use the&amp;nbsp; PWM driver example which has multiple demos and in my case, i changed the demos by using buttons and the driver as u may know uses the bsp functions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;however when I came to add some other functionality to the project such as GPIOTE interrupts the program was clashing due to the bsp library.&lt;/p&gt;
&lt;p&gt;but now as i said i solved it :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enum change with pushbuttons</title><link>https://devzone.nordicsemi.com/thread/274544?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 09:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4570e42-6568-4478-ad6b-2d2fff0e9165</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not sure why you can&amp;#39;t use the GPIOTE library as purposed earlier in this thread. Could you elaborate on this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enum change with pushbuttons</title><link>https://devzone.nordicsemi.com/thread/274170?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2020 21:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:491bdc23-7f68-43d0-a17c-84187e5d28fe</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;i have taken your advice and it worked, however my issue is that i do not wish to change an led status via an enum.&lt;/p&gt;
&lt;p&gt;My application is that i have multiple functions similar to the demo in PWM driver example and via a push button it changes to the next function however in the PWM driver it usalises the bsp and i wish to remove it as its conflicing with other parts of the code&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enum change with pushbuttons</title><link>https://devzone.nordicsemi.com/thread/274159?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2020 11:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edbd7a5d-3e65-48de-939e-1bfe9c19ff4d</guid><dc:creator>Ali Rumane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;BSP depends on&amp;nbsp;app_button library. You can directly use&amp;nbsp;&lt;span&gt;app_button&amp;nbsp;library&lt;/span&gt;&amp;nbsp;or use &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpiote.html?cp=4_2_0_20#concept_knz_kww_lr"&gt;GPIOTE&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Examples of &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49536/button-push-and-release-events"&gt;app_button &lt;/a&gt;and &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/nrf_gpiote_example.html"&gt;gpiote&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>