Fix: Add PYTHONPATH for samplebase module
This commit is contained in:
@@ -104,7 +104,10 @@ crontab -e # Remove the matrix64 line
|
|||||||
|
|
||||||
## Manual Execution
|
## Manual Execution
|
||||||
|
|
||||||
|
The script requires `samplebase.py` from the rpi-rgb-led-matrix library:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /opt/matrix64
|
cd /opt/matrix64
|
||||||
|
export PYTHONPATH=/home/pi/rpi-rgb-led-matrix/bindings/python/samples
|
||||||
sudo python3 matrix.py --led-rows=64 --led-cols=64
|
sudo python3 matrix.py --led-rows=64 --led-cols=64
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ Wants=network-online.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/matrix64
|
WorkingDirectory=/opt/matrix64
|
||||||
|
Environment="PYTHONPATH=/home/pi/rpi-rgb-led-matrix/bindings/python/samples"
|
||||||
ExecStart=/usr/bin/python3 /opt/matrix64/matrix.py --led-rows=64 --led-cols=64
|
ExecStart=/usr/bin/python3 /opt/matrix64/matrix.py --led-rows=64 --led-cols=64
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|||||||
Reference in New Issue
Block a user