<html><head></head><body><div class="gmail_quote">On February 3, 2015 6:35:26 PM PST, Kevron Rees <tripzero.kev@gmail.com> 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">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 class="k9mail"><hr /><br />elinux-MinnowBoard mailing list<br />elinux-MinnowBoard@lists.elinux.org<br /><a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard">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>
</body></html>