Table of Contents
python3 -m venv env
To activate the env:
#fish
. env/bin/activate.fish
#bash
source env/bin/activate
To install required packages:
pip install -r requirements.txt
Some packages for neopixel/raspberry pi stuff are missing
Install, save and commit dependencies:
pip install some-package
pip freeze > requirements.txt
git add requirements.txt
git commit -m 'update dependencies'
Install direnv
echo 'export BOT_TOKEN=xyz-your-token-xyz' >> .envrc
echo 'export WAIT_DIR=/some/directory' >> .envrc
There are different display implementations in display.py
. They all implement the same API:
-
set_xy(x, y, (r, g, b))
will set the RGB value for a given pixel -
show()
will flush the values to the display
The PyGameDisplay
implementation can also be test-drive with python3 display_test.py