So try to install the newest one:
First, you have to download it. Position yourself on desired directory (for example "cd /root")
- Code: Select all
wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz
Extract it with:
- Code: Select all
tar -xvf RPi.GPIO-0.5.11.tar.gz
And install it with:
- Code: Select all
cd RPi.GPIO-0.5.11
- Code: Select all
python2 setup.py install
If you experience some errors because an older version is already installed, you can first try to remove the older version. I don't know exactly how to do it and currently don't have time to test, but it should be something like:
- Code: Select all
pacman -Rns RPi.GPIO
Currently I don't have time to test this by myself, but you can try it yourself and let me know if it works! If it does, then I will test it with older Pi as soon as I get some free time and update the tutorial.
I hope it will work
NOTE
Later I noticed that something is wrong with the buttons. The may work for a while but sooner or later it will bring up an error and buttons will stop working. But display will continue to work. Currently I have final exams on my college so until I finish with it, I can't work on this, and there's a lot of things to fix. Sorry for that.
But I'm using it since I created it with IR remote and LCD display and it works good. As I said, it consume a lot of resources (about 20-30% CPU constantly on older RPi and it's the process with highest CPU usage) but I haven't noticed any problems or performance decrease because of that. It will work probably even better on RPi 2 which is more powerfull. Unfortunately, I wasn't able to decrease this CPU usage. The problem is writting to display which takes a lot of CPU usage and since it scrolls the text, it writes to display almost all the time making such high CPU usage. And the faster the speed of scrolling is, the more CPU usage it takes. I tried all libraries for LCD I could find but all of them consume a lot of CPU power, some of them more, some of them less. This Adafruit one is not the lightest one but works the best. There's a library which consumes less CPU power, but on song change the scroll slows down a lot.