<?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>code to blink a led if i pressed a button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48901/code-to-blink-a-led-if-i-pressed-a-button</link><description>#include &amp;lt;stdbool.h&amp;gt; #include &amp;lt;stdint.h&amp;gt; #include &amp;quot;nrf_delay.h&amp;quot; #include &amp;quot;boards.h&amp;quot; const uint32_t led1=14; const uint32_t led2=13; const uint32_t button=11; uint32_t P0_10; uint32_t value; /** * @brief Function for application main entry. */ int main</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jun 2019 07:54:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48901/code-to-blink-a-led-if-i-pressed-a-button" /><item><title>RE: code to blink a led if i pressed a button</title><link>https://devzone.nordicsemi.com/thread/194237?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 07:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c86e06a-892a-478a-bde6-9ad64c01c714</guid><dc:creator>awneil</dc:creator><description>[quote userid="80825" url="~/f/nordic-q-a/48901/code-to-blink-a-led-if-i-pressed-a-button"]Can anyone tell whats the error in the code[/quote]
&lt;p&gt;What have &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt; &lt;/em&gt;done to debug it?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.avrfreaks.net/comment/2418156#comment-2418156" rel="noopener noreferrer" target="_blank"&gt;How To Debug&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6170._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>