by AMC - Adalberto Maria Caccia
(da: https://www.waveshare.com/w/upload/5/54/WM8960_Audio_HAT_User_Manual_EN.pdf) git clone https://github.com/waveshare/WM8960-Audio-HAT cd WM8960-Audio-HAT sudo ./install.sh sudo reboot
sudo apt install -y vlc
(da: https://github.com/rm-hull/luma.examples) sudo usermod -a -G i2c,spi,gpio pi sudo apt install python-dev python-pip libfreetype6-dev libjpeg-dev build-essential sudo apt install libsdl-dev libportmidi-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev
git clone https://github.com/rm-hull/luma.examples.git cd luma.examples
(avoiding memory problems on rpi0, as pillow-6.0.6 causes memory exception:) sudo -H pip install -Iv Pillow==4.3.0 sudo -H pip install -e .
scp digital_clock.sh pi@pir8radio3: scp digital_clock.py pi@pir8radio3:luma.examples/examples/ scp Arial\ Narrow.ttf pi@pir8radio3:luma.examples/examples/fonts/
~/digital_clock.sh
(da: https://www.waveshare.com/w/upload/5/54/WM8960_Audio_HAT_User_Manual_EN.pdf) sudo apt install python3-gpiozero