Running RPi.GPIO

3cells
3cells New Member Posts: 22 ✭✭

Just loaded Ubilinux 4.0 as per the instructions on the wiki.

added RPi.GPIO following instructions here https://wiki.up-community.org/RPi.GPIO

Tried the blink LED demo
and got the message 'this module can only be run on a Raspberry Pi' ?
This isn't the result I expected - is there something else I should have done beyond the instructions in the RPI.GPIO wiki?

Comments

  • Dan O'Donovan
    Dan O'Donovan Administrator, Moderator, Emutex Posts: 241 admin

    Hi

    I think those instructions to install RPi.GPIO using pip are incorrect. I don't have an UP board with me to check at the moment, but my guess would be that the RPi.GPIO pip package should be removed. There should be no need to install that, and I think it will install the version of RPi for Raspberry Pi, which won't work on the UP board. ubilinux includes a special version that is modified specifically for the UP board.

    An older version of that wiki page may have had more accurate information. I'm not sure why it was changed:
    https://wiki.up-community.org/index.php?title=RPi.GPIO&direction=prev&oldid=570

    Alternatively, I suggest considering MRAA instead, as it provides better support for UP and UP Squared boards and can work with Ubuntu and other distros as well:
    https://wiki.up-community.org/MRAA/UPM

    I hope that helps.

  • 3cells
    3cells New Member Posts: 22 ✭✭

    Dan thanks - mraa works fine with Ubilinux UP Board. Nice to know it works with Ubuntu I will try that on my other board

Privacy Policy