So to summarize, here is how to make the OLED 16x2 works on a
Audiophonics RaspDAC V2 (I-sabre V2 DAC ES9023) with a Raspbesrry 2 (be aware I'm talking about RaspDAC V2 not V3) with RuneAudio.
First wired the RaspDAC and the OLED like shown in this page:
http://forum.audiophonics.fr/viewtopic.php?f=4&t=1492Update your RuneUI:
how-to-update-the-runeui-via-git-t547.htmlIf you get a message:
- Code: Select all
error: Your local changes to the following files would be overwritten by merge:
(...)
Please commit your changes or stash then before you can merge.
Then if you know your changes you can use
- Code: Select all
git reset --hard
or otherwise
- Code: Select all
git stash
Run a git pull once again:
- Code: Select all
git pull
curl -s -X GET 'http://localhost/clear'
Then:
set a softlink to python2
- Code: Select all
ln -s /usr/bin/python2 /usr/bin/python
install GCC
- Code: Select all
pacman -S gcc
install RPIO.gpio
- Code: Select all
wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.6.2.tar.gz
tar zxvf RPi.GPIO-0.6.2.tar.gz
cd RPi.GPIO-0.6.2
python setup.py install
get the python script and uncompress it
download/file.php?id=587- Code: Select all
tar zxvf 16x2_oled_runeaudio.tar.gz
copy this file
- Code: Select all
cp 16x2_oled_runeaudio.py /usr/local/bin/
Register the script as a service, to launch it at startup:
- Code: Select all
nano /usr/lib/systemd/system/oled.service
Copy the following in the file:
- Code: Select all
[Unit]
Description=Audiophonics OLED Service
After=mpd.service
[Service]
ExecStart=/usr/bin/python /usr/local/bin/16x2_oled_runeaudio.py
ExecReload=/usr/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20
[Install]
WantedBy=multi-user.target
Enable the service
- Code: Select all
systemctl enable oled.service
Start the service
- Code: Select all
systemctl start oled.service
Many thanks Franck!
If I have forgotten something, tell me and I will add it.