sophiathekitty / NullDisplay

handles micro display stuff
MIT License
0 stars 1 forks source link

Null Display

a micro display using a raspberry pi zero and mini PiTFT hat. testing out pulling this to the pi so maybe i can have them do automatic pulls...

Hardware

Setup Mini PiTFT all in one mega command of doom

this is going to be very slow and scary. just let it do its thing. the adafruit-circuitpython-rgb-dislay is the scariest and just kinda hangs. but it's ok. it's installing

sudo apt-get install python3-pip -y && sudo pip3 install adafruit-circuitpython-rgb-display && sudo pip3 install --upgrade --force-reinstall spidev && sudo apt-get install ttf-dejavu -y && sudo apt-get install python3-pil -y && sudo apt-get install python3-numpy -y

Setup Mini PiTFT individual steps

the adafruit-circuitpython-rgb-dislay is the scariest and just kinda hangs. but it's ok. it's installing. also make sure to turn on the spi interface in the raspi-config

sudo apt-get install python3-pip -y
sudo pip3 install adafruit-circuitpython-rgb-display
sudo pip3 install --upgrade --force-reinstall spidev 
sudo apt-get install ttf-dejavu -y
sudo apt-get install python3-pil -y
sudo apt-get install python3-numpy -y
sudo pip3 install colour

see adafruit for examples and documentation of mini pitft

Setup for eInk display

curl https://get.pimoroni.com/inkyphat | bash

see inky-phat for examples and documentation of inky phat

Cron Jobs

sudo crontab -e
2 * * * * sh /var/www/html/plugins/NullDisplay/gitpull.sh

mini pitft cron job

crontab -e
@reboot sudo sh /var/www/html/python/pitft/screen.sh

eInk python cron job

crontab -e
* * * * * sh /var/www/html/python/eInk/refresh.sh

Plugins

Extensions

Tools