[MinnowBoard] mraa minnoboard max GPIO pin mappings.
John "Warthog9" Hawley
warthog9 at eaglescrag.net
Wed Feb 4 05:34:01 UTC 2015
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20150203/702538ce/attachment.html>
More information about the elinux-MinnowBoard
mailing list