Hello,
I have a rpi-rgb- led matrix 16 rows and 32 cols.
I wrote a Python file in order to run my own text which changes every minute.
I wrote the following code in rc.local:
#!/bin/shpio -e
_IP=$(hostname -I) || true
if [ “$_IP” ]; then
printf “My IP address is %s\n” “$_IP”
fi
python3 /home/lo/rpi-rgb-led-matrix/bindings/python/samples/rungoed.py -m=adafruit-hat --led-rows=16 --led-cols=32 --led-slowdown-gpio=0 &
exit 0
The program is not running at startup.
I changed the code to:
#!/bin/shpio -e
_IP=$(hostname -I) || true
if [ “$_IP” ]; then
printf “My IP address is %s\n” “$_IP”
fi
cd /home/lo/rpi-rgb-led-matrix/bindings/python/samples &
python3 rungoed.py -m=adafruit-hat --led-rows=16 --led-cols=32 --led-slowdown-gpio=0 &
exit 0
The code doesn’t work either.
If I use
python3 /home/lo/rpi-rgb-led-matrix/bindings/python/samples/rungoed.py -m=adafruit-hat --led-rows=16 --led-cols=32 --led-slowdown-gpio=0
on the command prompt it works perfect.
I hope you can give me advice what I have to change.
Thank you.
Lo