<?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>Handling Blink timers and using LED one-shot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15940/handling-blink-timers-and-using-led-one-shot</link><description>Hi, 
 I have a app that using a constantly blinking LED started at power-up, however I am having some trouble stopping the timer.. (Yes, I know it&amp;#39;s simple.. but i still cant figure out where) 
 This is my timer 
 err_code = bsp_init(BSP_INIT_LED,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Aug 2016 11:07:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15940/handling-blink-timers-and-using-led-one-shot" /><item><title>RE: Handling Blink timers and using LED one-shot</title><link>https://devzone.nordicsemi.com/thread/60805?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 11:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c38207a5-b064-43a7-91f7-e620747b7c0c</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The bsp module is indeed not easy to use and we are working on improving it.&lt;/p&gt;
&lt;p&gt;The bsp module uses one shot timer and starts a new timer in the event handler based on the state. If the state is IDLE it will not start a new timer, hence this is the way you stop the constant blinking. You can set the state with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t err_code = bsp_indication_set(BSP_INDICATE_IDLE);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You should use app_timer and not rtc1.h. App_timer uses the RTC1 peripheral so if you try to use both app_timer and rtc1.h you will run into trouble. See &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;this tutorial&lt;/a&gt; on how to use the app_timer module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>