motine / wandpixel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wandpixel

The fun may begin. Let's write some nice animations for the wandpixel.

Please open pull requests and add new draw scripts

Get started

# install the python3
# install pygame package
python3 -m pip install -U pygame --user

# now run the engine with the demo script
./start.py snowflake

# to start your own script:
cp snowflake.py yourscript.py
vim yourscript.py
# use strip's method set_pixel([x, y], color_triple) to set the color of a pixel
# make sure to call strip.show() at the end of the draw method
# the init(strip, args) method is optional
# if you want to override the number of frames per second, specify a constant called FPS in your script
./start.py yourscript

If you have the actual LED matrix as seen at Tom's house, please also run the following on the raspberry pi:

sudo apt install libsdl2-dev
sudo python3 -m pip install rpi_ws281x
touch USE_LEDS # if this file is present, we will not spin up a window, but rather use the actual matrix
sudo ./start.py snowflake

Notes on Assembly

Impressions

About


Languages

Language:Python 100.0%