Wanted to throw out a request for the adafruit 3.5 tft display. Spent my weekend trying to get it to run with a variety of install options but always came up empty.
Dietpi is very usable without the feature but it sure would be cool to have it all display on the tft.
Add me to the list, in my case I use the 2.8" TFT from Adafruit with my Raspberry Pi 3B+. I managed to get through the Adafruit driver install by doing the following as root:
First I went through the adafruit-pitft.sh script and replaced references to “/home/pi” with “/home/dietpi”
Next I installed setuptools:
sudo pip install -U setuptools
Then I installed python-dev:
sudo apt-get install python-dev
When I started running into issues during the PIP install of the driver, I was able to actually get through it with no problems by first installing these common dependencies:
I have run the TFT install script the when I reboot, it is just not showing on the TFT screen. Screen is on but completely blank. Anyone figure this one out?
Outdated and adds forcefully an outdated Raspbian mirrordirector that is changes by RPi packages again. Tailored for Raspbian. Strange that it does not add the build requirements then. I’ll see if I find time to contribute to it to make it better compatible with non standard Raspbian distros. If anyone wants to help, is welcome of course .
Ahh btw is this dtoverlay “pitft35-resistive”, shipped with RPi firmware, not already functional?
cd ~
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git
cd Raspberry-Pi-Installer-Scripts
chmod +x adafruit-pitft.sh
After following all the steps below, run the script with the homedir parameter: ./adafruit-pitft.sh -u /home/dietpi
Do a apt-get install setuptools
Do apt-get install wheel
Go to dietpi-software > software additional software > Python Pip
(I also remember running apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk from jackspace above). From dietpi-config I have also enabled I2C and in the Display Options clicked on LCD panel and selected the waveshare32 option.
Then I got an error about gcc-arm-linux-gnueabihf. Did apt-get install gcc-arm-linux-gnueabihf
After that I got a make error. Did sudo apt-get install build-essential
Do apt-get install raspi-config
Do a adduser pi and set its password
Make sure raspi-config is working fine
Got an error related to rc.local. created /etc/rc.local, made it an executable chmod +x /etc/rc.local, edited it and added following lines:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
exit 0
Start rc.local service: systemctl start rc-local and make sure that it is running: systemctl status rc-local
Finally run ./adafruit-pitft.sh -u /home/dietpi
If everything is successful, script asks for a reboot, and terminal display is shown on TFT