I want to execute a script on my rpi3 after startup. I tried tot use /etc/rc.local and put this line between fi and exit0.
Code: Select all
sudo python /home/pi/ledmatrix/ledmatrix.py image.png & The .png file is a image that displays on the matrix board.
When I put the line below in rc.local, it will show a test animation on the ledmatrix board after startup.
Code: Select all
sudo python /home/pi/ledmatrix/test_2.py &