Ok
As I said in the "IR remote problems" topic, my skills are limited but after a lot of tries and errors I ended up with the following guide.
I use a 16x2 LCD display with I2C backpack and the newer version of XploD's solution (
https://github.com/RandyCupic/RuneAudioLCD ).
Works pretty well on a Pi2.
1) Edit the /boot/config.txt file
Find this line:
#dtparam=i2c_arm=on
and remove the # at the beginning
2) Edit /boot/cmdline.txt file
and at the end of the file, add this:
, bcm2708.vc_i2c_override=1
3) Edit /etc/modules-load.d/raspberrypi.conf
and at the bottom of the file, add this:
i2c-bcm2708
i2c-dev
4) Install I2C tools
pacman -Sy
pacman -S i2c-tools
5) Turn off your Raspberry Pi 2 and connect your device
6) Turn on your Pi and detect your I2C device
type the following command:
i2cdetect -y 1
You should get something like this
27 on 20:|7
(This means that the I2C DISPLAY ADDRESS of the backpack is : 0x27)
7) Put the uncompressed folder RuneAudioLCD (
https://github.com/RandyCupic/RuneAudioLCD)
In the root directory (/root/RuneAudioLCD)
8) Open the start.py file and correct the I2C_DISPLAY_ADDRESS, LCD_COLUMNS & LCD_ROWS according to your display. Correct also everything else that you need (i.e. buttons, remote)
9) Create a startup service “ rune_lcd.service” in /usr/lib/systemd/system/
Type in the following command:
nano /usr/lib/systemd/system/rune_lcd.service
and paste
#######################################################
[Unit]
Description=RuneAudio I2C LC-Display
After=mpd.service
[Service]
ExecStart=/usr/bin/python2 /root/RuneAudioLCD/start.py
TimeoutSec=0
Restart=always
RestartSec=1
StartLimitInterval=30
StartLimitBurst=20
[Install]
WantedBy=multi-user.target
#######################################################
10) enable the new service :
systemctl enable rune_lcd.service
11) reboot
I hope it make sense
Regards
Stavros