Skip to content
Jim McKenna edited this page Jun 24, 2018 · 2 revisions

To setup PADD with a PiTFT+ screen:

Setup Your Pi

More in-depth instructions on setting up a Raspberry Pi with a PiTFT+ can be found here.

cd ~
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh
chmod +x adafruit-pitft.sh
sudo ./adafruit-pitft.sh
  • Prevent the display from going to sleep by adding consoleblank=0 to the end of /boot/cmdline.txt.
  • Set your Pi to automatically log into the console using raspi-config.
  • Configure the console to use the Terminus font at 8x14 by running sudo dpkg-reconfigure console-setup.

Setup Pi-Hole

  • Install Pi-hole by running curl -sSL https://install.pi-hole.net | bash.

Setup PADD

  • Get a copy of PADD by running:
cd ~
wget -N https://raw.githubusercontent.com/jpmck/PADD/master/padd.sh
  • Make PADD executable by running
sudo chmod +x padd.sh
  • Set PADD to auto run by adding the following to the end of ~/.bashrc:
# Run PADD
# If we're on the PiTFT screen (ssh is xterm)
if [ "$TERM" == "linux" ] ; then
  while :
  do
    ./padd.sh
    sleep 1
  done
fi
  • Reboot your Pi-Hole by running sudo reboot. PADD should now run when your Pi-Hole has completed booting.

(Optional) Put the Display to Sleep at Night

If you don't want your PiTFT on all night when you are asleep, you can put it to sleep! (Note: these instructions only apply to a PiTFT.)

  • To do so, edit cron as root (sudo crontab -e) and add the following:
# PiTFT+ SLEEPY TIME
# Turn off the PiTFT+ at midnight
00 00 * * * sh -c 'echo "0" > /sys/class/backlight/soc\:backlight/brightness'
# Turn on the PiTFT+ at 8:00 am
00 08 * * * sh -c 'echo "1" > /sys/class/backlight/soc\:backlight/brightness'