Published on Dec 7, 2015 by Jamie Munro
The examples all looked quite simple when it was assumed the RPi.GPIO was already installed. However, with OpenELEC being a media center first and an OS second, it was a little more involved.
I did end up getting it working and here is how I did it:
1. Install the OpenELEC unofficial addons repository.
2. Once installed, add the RPi.GPIO package from the Tools section.
3. In your Python code, before importing, include the directory where the RPi.GPIO is installed:
4. Follow one of the many great tutorials from Raspberry Pi.