Hi XploD and all others,
I spent many hours to try to understand what happened (cf my post just above) and finally I found a solution. I'm a beginner in Linux and Python, so may be my method is not the best, but it works.
My guess is the Adafruit libraries and/or the last RuneAudio distro have changed since you wrote your tuto. I expose here a solution. First of all, I precise again the context: Raspberry Pi2 / RuneAudio 0.3beta / LCD HD44780 (4 bits wire, no I2C).
My numbers here refer to the chapter numbers from your tuto.
1) Python2 was already installed (comes with RuneAudio 0.3?). Nothing to do here.
4) Installing RPi.GPIO
No, don't.
Install Adafruit_Python_GPIO instead:
- Code: Select all
wget https://github.com/adafruit/Adafruit_Python_GPIO/archive/master.zip
unzip master.zip
cd Adafruit_Python_GPIO
python2 setup.py install
The reason is that the Adafruit CharLCD library needs it.
5) Installing Adafruit LCD library
Yes but slightly different.
Get and unzip the library, then go to the Adafruit_Python_CharLCD-master folder, as described.
5.1) We have to edit and update the source file of the library, BEFORE building and installing it:
- Code: Select all
cd Adafruit_CharLCD
nano Adafruit_CharLCD.py
- comment the line 24 (as you described): #import Adafruit_GPIO.I2C as I2C
- comment the line 25 (this module also uses I2C): #import Adafruit_GPIO.MCP230xx as MCP
- comment the last class at the end of the file (as you described): '''class Adafruit_CharLCDPlate(Adafruit_RGBCharLCD) ... '''
5.2) Then, install the library:
- Code: Select all
python2 setup.py install
Et voilà !