Page 1 of 1

Adafruit 3.5 tft

Posted: Mon Nov 19, 2018 1:27 am
by Warmbadger
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.

Thanks

Re: Adafruit 3.5 tft

Posted: Tue Nov 20, 2018 8:44 pm
by MichaIng
Did you try it with RPi or which device?

Re: Adafruit 3.5 tft

Posted: Fri Nov 30, 2018 5:25 pm
by Warmbadger
Ya I tried to get it going for the Raspberry Pi.
https://www.adafruit.com/product/2097

Re: Adafruit 3.5 tft

Posted: Mon Dec 17, 2018 3:03 am
by jackspace
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:

    Code: Select all

    sudo pip install -U setuptools
  • Then I installed python-dev:

    Code: Select all

    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:

    Code: Select all

    sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
This allowed me to get through the install script without any errors. However, when I reboot, I'm still not seeing anything on the TFT.

Any pointers on how to get this resolved without having to switch away from Dietpi? I really love this OS.

Re: Adafruit 3.5 tft

Posted: Sun Nov 10, 2019 6:19 am
by dpinewbie
Hi I am having the same issue.

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?

Re: Adafruit 3.5 tft

Posted: Wed Dec 04, 2019 10:56 pm
by macstibs
Add me to the list. Got an RPI B up and running on Dietpi this AM. Cloned the git from Waveshare and ran the driver install but no love.

Re: Adafruit 3.5 tft

Posted: Sun Dec 15, 2019 11:46 am
by MichaIng
Okay found the script: https://raw.githubusercontent.com/adafr ... t-pitft.sh

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?

See bottom of this post: https://github.com/MichaIng/DietPi/issu ... -548343771

Re: Adafruit 3.5 tft

Posted: Thu Aug 06, 2020 8:38 am
by pravpiuser
I'm able to get this working with a Pi Zero and Adafruit Mini PiTFT. Here are the steps I followed:
1. Download the Adafruit script as mentioned here: https://learn.adafruit.com/adafruit-min ... le-install

Code: Select all

cd ~
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git
cd Raspberry-Pi-Installer-Scripts
chmod +x adafruit-pitft.sh
2. After following all the steps below, run the script with the homedir parameter: ./adafruit-pitft.sh -u /home/dietpi
3. Do a apt-get install setuptools
4. Do apt-get install wheel
5. 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.
6. Then I got an error about gcc-arm-linux-gnueabihf. Did apt-get install gcc-arm-linux-gnueabihf
7. After that I got a make error. Did sudo apt-get install build-essential
8. Do apt-get install raspi-config
9. Do a adduser pi and set its password
10. Make sure raspi-config is working fine
11. 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:

Code: Select all

#!/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
12. Start rc.local service: systemctl start rc-local and make sure that it is running: systemctl status rc-local
13. Finally run ./adafruit-pitft.sh -u /home/dietpi
14. If everything is successful, script asks for a reboot, and terminal display is shown on TFT

Re: Adafruit 3.5 tft

Posted: Thu Aug 06, 2020 12:22 pm
by Joulinar
Thx for sharing your solution. Much appreciated.