<?xml-stylesheet type="text/xsl" href="https://community.element14.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/"><channel><title>sama5d3 xplained violet - Using GPIO through bash</title><link>/products/devtools/sama5d3xplained/b/blog/posts/sama5d3-xplained-violet---using-gpio-through-bash</link><description>This blog is about using some basic control methods to use the GPIO pins of the xplained board through bash commands, we&amp;#39;ll look at using a digital pin as an output and then reading the value of it as an input pin. I already wrote a quick post a...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: sama5d3 xplained violet - Using GPIO through bash</title><link>https://community.element14.com/products/devtools/sama5d3xplained/b/blog/posts/sama5d3-xplained-violet---using-gpio-through-bash</link><pubDate>Thu, 30 Oct 2014 17:58:26 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ba32d115-53e6-41ab-823c-cdb667d89e8b</guid><dc:creator>sjcchuma</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi, not sure if this good place to ask but i am trying to gain access to BP3 (PB_USER) button. I came up with GPIO number 61 (PE29), is this correct? After configuration below, I got pioB29 and press button didn&amp;#39;t change value. Could you help?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio# echo 61 &amp;gt; export&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio# ls&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;export&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpiochip128&amp;nbsp; gpiochip64&amp;nbsp; pioB29&lt;br /&gt;gpiochip0&amp;nbsp; gpiochip32&amp;nbsp;&amp;nbsp; gpiochip96&amp;nbsp; unexport&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio# cd pioB29&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio/pioB29# ls&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;active_low&amp;nbsp; device&amp;nbsp; direction&amp;nbsp; edge&amp;nbsp; power&amp;nbsp; subsystem&amp;nbsp; uevent&amp;nbsp; value&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio/pioB29# echo out &amp;gt; direction&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio/pioB29# echo 1 &amp;gt; value&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio/pioB29# cat value&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio/pioB29# cat value&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;root@SAMA5D3-Xplained:/sys/class/gpio/pioB29# uname -a&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Linux SAMA5D3-Xplained 3.16.5-sama5-armv7-r8 #1 Mon Oct 27 11:01:55 PDT 2014 armv7l GNU/Linux&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18806&amp;AppID=93&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>