<div dir="ltr"><div class="gmail_quote">On Feb 3, 2015 9:34 PM, "John "Warthog9" Hawley" <<a href="mailto:warthog9@eaglescrag.net" target="_blank">warthog9@eaglescrag.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_quote">On February 3, 2015 6:35:26 PM PST, Kevron Rees <<a href="mailto:tripzero.kev@gmail.com" target="_blank">tripzero.kev@gmail.com</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Going by this[1], it would seem that the 21 pin corresponds with GPIO on pin 21 of the max.  However, when I run the following code, I get an error: "ValueError: Invalid GPIO pin specified"<br><br><div>#!/usr/bin/env python<br></div><div><br></div><div>import mraa</div><div>import time</div><div><br></div><div>led = mraa.Gpio(21)</div><div><br></div><div>led.dir(mraa.DIR_OUT)</div><div><br></div><div>while True:</div><div>        led.write(1)</div><div>        time.sleep(1)</div><div>        led.write(0)</div><div>        time.sleep(1)</div><div><br></div>Can anyone tell me why my pin is invalid?<br><br>[1] - <a href="http://iotdk.intel.com/docs/master/mraa/minnowmax.html" target="_blank">http://iotdk.intel.com/docs/master/mraa/minnowmax.html</a></div>
<p style="margin-top:2.5em;margin-bottom:1em;border-bottom:1px solid #000"></p><pre><hr><br>elinux-MinnowBoard mailing list<br><a href="mailto:elinux-MinnowBoard@lists.elinux.org" target="_blank">elinux-MinnowBoard@lists.elinux.org</a><br><a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard" target="_blank">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a><br></pre></blockquote></div><br clear="all"><p dir="ltr">Does your kernel have gpio support?</p></div></blockquote><div><br></div><div>I believe so.  I have stuff in /sys/class/gpio and have been able to toggle different IOs on and off using the command line (echo "FTW") </div></div>
</div>