mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 03:51:45 +00:00
.. | ||
graphics.py | ||
grayscale-block.py | ||
image-draw.py | ||
image-scroller.py | ||
image-viewer.py | ||
menu.py | ||
pulsing-brightness.py | ||
pulsing-colors.py | ||
README.md | ||
rotating-block-generator.py | ||
runtext.py | ||
simple-square.py |
About
These are basic example scripts on the usage of the Matrix itself.
Usage
Unfortunately, there is no known way to run the provided scripts as is due to the projects directory structure. However, you can still run the scripts with a little bit of a workaround:
-
Copy the directory
deps/samples/
to some other, well known place. -
Copy the file
deps/samplebase.py
into thesamples
copy you just created. -
Find and replace all references to the common library
samplebase.py
:-
The erroneous imports should look like this:
from ..samplebase import SampleBase
-
And they should be replaced like this:
from samplebase import SampleBase
-
-
Run any given sample script with the following template:
sudo python3 <script>.py
- NOTE: You may need to specify all kinds of different flags or arguments to run the matrix correctly. For usage, please refer to any of the scripts, followed by the flag
--help
.
Example Command
sudo python rotating-block-generator.py --led-rows=64 --led-cols=64 --led-slowdown-gpio=5 --led-parallel=3 --led-chain=3 --led-gpio-mapping=regular