[MinnowBoard] mraa minnoboard max GPIO pin mappings.

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


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> wrote:

> On Feb 3, 2015 9:34 PM, "John "Warthog9" Hawley" <warthog9 at eaglescrag.net>
> wrote:
>
>> On February 3, 2015 6:35:26 PM PST, Kevron Rees <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
>>> 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")
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20150204/24ffbcc9/attachment.html>


More information about the elinux-MinnowBoard mailing list