MU/TH/UR LED Matrix
If you opted to include the MU/TH/UR LED Matrix in your PS-85 build, you can set it up to display a simple blinking pattern similar that seen in the Alien movies.
The CharliePlex LED Matrix Bonnet is well documented over on Adafruit's website if you want to explore more functionality.
1. Installation
-
Make the MU/TH/UR Directory
cd /home/pi
mkdir muthur
cd muthur -
Download the Script and Bash Files
wget https://raw.githubusercontent.com/jeffmerrick/typeframe/main/ps-85/software/muthur/lights.py
wget https://raw.githubusercontent.com/jeffmerrick/typeframe/main/ps-85/software/muthur/start.sh
wget https://raw.githubusercontent.com/jeffmerrick/typeframe/main/ps-85/software/muthur/stop.sh
chmod +x start.sh stop.sh -
Create Virtual Environment
python3 -m venv venv -
Activate Virtual Environment
source venv/bin/activate -
Install Dependencies
pip install adafruit-circuitpython-is31fl3731 adafruit-circuitpython-framebuf RPi.GPIO Pillow -
Enable I2C (if not already enabled)
sudo raspi-config nonint do_i2c 0
2. Controlling the Lights
Manually with the Python script
With the virtual environment activated:
python3 lights.py
python3 lights.py off
When you're done:
deactivate
With the Bash scripts
To turn on the lights:
./start.sh
To turn off the lights:
./stop.sh