Adafruit 3.5 - project-owner/PeppyPlayers.doc GitHub Wiki

Overview

The display is available from the Adafruit web site and Amazon.

adafruit-3.5

Disk Image Content

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.

Installation and Configuration

Here are the steps which were used to create the Disk Image for the Adafruit 3.5" touchscreen.

Install the Headless Disk Image

  • 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.

Configure Peppy Player for display

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/

Configure the touchscreen functionality

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

Install the Splash Screen

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

Configure peppyalsa plugin

Switch to the peppyalsa plugin and test audio:

cp .asoundrc-equal-peppyalsa .asoundrc
speaker-test -t wav

Remove console messages during booting

Edit the configuration file:

sudo nano /boot/cmdline.txt

Add parameter:

fbcon=map:2

Reboot / Test / Cleanup

sudo reboot

Test player functionality.
Cleanup:

rm -rf adafruit-pitft.sh .bash_history .wget-hsts
sudo poweroff
⚠️ **GitHub.com Fallback** ⚠️