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
[email protected]
http://lists.elinux.org/mailman/listinfo/elinux-minnowboard

Reply via email to