05-01-2018, 08:23 PM
(This post was last modified: 05-03-2018, 09:19 AM by rikardo1979.)
Simple guide how to install python program to show playback information on Winstar OLED 16x2 HD44780
Part 1 :
Install the libs for the OLED and PWR management
Part 2 :
Download scripts for moOde
Part 3 :
Make the scripts executable:
Part 4 :
Open the rc.local file:
Part 5 :
Add this two lines before the exit 0:
OPTIONAL
Edit MoodAudio-RaspDAC-Script
Adjust this setting to localise the time display to your region
To slow down text scrolling locate
I like it at this speed
Part 1 :
Install the libs for the OLED and PWR management
Code:
sudo apt-get install python-setuptools
sudo easy_install pip
sudo pip install moment && sudo pip install pylms && sudo pip install python-mpd2
sudo apt-get install wiringpi
Part 2 :
Download scripts for moOde
Code:
git clone https://github.com/audiophonics/MoodAudio-RaspDAC-Script
Part 3 :
Make the scripts executable:
Code:
chmod 755 /home/pi/MoodAudio-RaspDAC-Script/*.sh
Part 4 :
Open the rc.local file:
Code:
sudo nano /etc/rc.local
Part 5 :
Add this two lines before the exit 0:
Code:
/home/pi/MoodAudio-RaspDAC-Script/sds.sh &
(sleep 20; sudo python /home/pi/MoodAudio-RaspDAC-Script/RaspDacDisplay.py) &
OPTIONAL
Edit MoodAudio-RaspDAC-Script
Code:
sudo nano /home/pi/MoodAudio-RaspDAC-Script/RaspDacDisplay.py
Adjust this setting to localise the time display to your region
Code:
TIMEZONE="Europe/London"
TIME24HOUR=True
To slow down text scrolling locate
Code:
# Smooth animation
if time.time() - prev_time < .08:
time.sleep(.08-(time.time()-prev_time))
I like it at this speed
Code:
# Smooth animation
if time.time() - prev_time < .20:
time.sleep(.20-(time.time()-prev_time))
![[Image: z9uM3y.jpg]](https://i.snag.gy/z9uM3y.jpg)
<marquee behavior="alternate" scrolldelay=150
~~~~>>>Please always follow rules and read before you post<<<~~~~
</marquee>
~~~~>>>Please always follow rules and read before you post<<<~~~~
</marquee>