[MinnowBoard] mraa minnoboard max GPIO pin mappings.

Kevron Rees tripzero.kev at gmail.com
Wed Feb 4 18:28:08 UTC 2015


mraa.  I'm still on the 3.14 LTSI kernel without pwm patches :(.  But at
least I have GPIO!

On Wed, Feb 4, 2015 at 10:25 AM, John Hawley <john.hawley at intel.com> wrote:

> updating kernel or mraa?  I did push some patches recently for newer
> kernels w/ mraa as the gpio pin numbering changed
>
> On 2/4/2015 10:05 AM, Kevron Rees wrote:
> > Seems to work now after updating.... at least over ssh I get no errors.
> > I'll verify for sure when I get home.
> >
> > On Wed, Feb 4, 2015 at 9:31 AM, Kevron Rees <tripzero.kev at gmail.com
> > <mailto:tripzero.kev at gmail.com>> wrote:
> >
> >     On Feb 3, 2015 9:34 PM, "John "Warthog9" Hawley"
> >     <warthog9 at eaglescrag.net <mailto:warthog9 at eaglescrag.net>> wrote:
> >
> >         On February 3, 2015 6:35:26 PM PST, Kevron Rees
> >         <tripzero.kev at gmail.com <mailto:tripzero.kev at gmail.com>> wrote:
> >
> >             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"
> >
> >             #!/usr/bin/env python
> >
> >             import mraa
> >             import time
> >
> >             led = mraa.Gpio(21)
> >
> >             led.dir(mraa.DIR_OUT)
> >
> >             while True:
> >                     led.write(1)
> >                     time.sleep(1)
> >                     led.write(0)
> >                     time.sleep(1)
> >
> >             Can anyone tell me why my pin is invalid?
> >
> >             [1] - http://iotdk.intel.com/docs/master/mraa/minnowmax.html
> >
> >
>  ------------------------------------------------------------------------
> >
> >             elinux-MinnowBoard mailing list
> >             elinux-MinnowBoard at lists.elinux.org <mailto:
> elinux-MinnowBoard at lists.elinux.org>
> >             http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
> >
> >
> >         Does your kernel have gpio support?
> >
> >
> >     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")
> >
> >
> >
> >
> > _______________________________________________
> > elinux-MinnowBoard mailing list
> > elinux-MinnowBoard at lists.elinux.org
> > http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
> >
> _______________________________________________
> elinux-MinnowBoard mailing list
> elinux-MinnowBoard at lists.elinux.org
> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20150204/88768ed7/attachment-0001.html>


More information about the elinux-MinnowBoard mailing list