Adafruit 3.5 - project-owner/PeppyPlayers.doc GitHub Wiki
The display is available from the Adafruit web site and Amazon.
This disk image is based on the Headless Disk Image and has the following additional software and configuration:
- Adafruit 3.5" LCD driver was installed and configured.
- Peppy Player was configured to work with GUI displayed in Adafruit LCD, Peppy Player splash screen was configured.
Here are the steps which were used to create the Disk Image for the Adafruit 3.5" touchscreen.
- Connect display to the GPIO connector.
- Download the Headless Disk Image
- Write downloaded disk image to 8GB MicroSD card.
- Insert a MicroSD card to a Raspberry Pi, power on, login using putty.
Edit the player configuration file
nano Peppy/config.txt
Set parameters:
headless = False
Copy changed file to the defaults:
cp Peppy/config.txt Peppy/defaults/
Install the display driver:
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/converted_shell_scripts/adafruit-pitft.sh
chmod +x adafruit-pitft.sh
sudo ./adafruit-pitft.sh
Select in menu:
4. PiTFT 3.5" resistive touch (320x480)
3. 270 degrees (landscape)
Would you like the console to appear on the PniTFT display? [y/n] n
Would you like the HDMI display to mirror to the PiTFT display? [y/n] n
REBOOT NOW? [y/N] n
sudo apt-get install fbi
wget https://raw.githubusercontent.com/project-owner/Peppy.doc/master/files/splash.service
Edit the service file:
nano splash.service
change the line to:
ExecStart=/usr/bin/fbi -d /dev/fb1 --noverbose -a /home/pi/Peppy/splash/splash-480.png
Start splash service
sudo mv splash.service /etc/systemd/system
sudo systemctl enable splash
sudo systemctl start splash
Switch to the peppyalsa plugin and test audio:
cp .asoundrc-equal-peppyalsa .asoundrc
speaker-test -t wav
Edit the configuration file:
sudo nano /boot/cmdline.txt
Add parameter:
fbcon=map:2
sudo reboot
Test player functionality.
Cleanup:
rm -rf adafruit-pitft.sh .bash_history .wget-hsts
sudo poweroff