A CircuitPython project to integrate a simple P5 LED Panel with my Homenode automation system.
A Pi Pico W listens for MQTT messages and shows:
- timers from Google Home
- the weather
- other various alerts from the system as icons
alertdisplay-subtitled.mp4
- Install
python3
- Create a virtualenv using
python -m venv .venv
- Activate the virtualenv using
.\.venv\Scripts\Activate.ps1
- Install the requirements using
pip install -r host-requirements.txt
circup install -r device-requirements.txt
Using REPL is the best way to quickly test things. The displaytest.py file has rough code for quickly displaying things.
// Windows
plink -serial \\.\COM5 -sercfg 115200,8,1,N,N
// OSX
screen /dev/cu.xxxxxxx
mqtt publish -t alertdisplay/setTimer -m pan,60
mqtt publish -t alertdisplay/removeTimer -m pan
mqtt publish -t alertdisplay/setIcon -m chicken,true
mqtt publish -t alertdisplay/setPower -m true
I I W // (x: (2, 22, 45), y: 1)
I I W // (x: (2, 22, 45), y: 16)
T T T
I I I
T T T
T T T
You can use Piskel and import the BMP files to edit them.
Piskel can export to PNG and you can use the command below (on OSX) to convert it to BMP.
sips -s format jpeg test.png --out test.jpg