Archived
debug stuff
This commit is contained in:
@@ -6,7 +6,7 @@ from luma.core.interface.serial import i2c, spi
|
|||||||
from luma.core.render import canvas
|
from luma.core.render import canvas
|
||||||
from luma.core import lib
|
from luma.core import lib
|
||||||
|
|
||||||
from luma.oled.device import ssd1306, sh1106
|
from luma.oled.device import sh1106
|
||||||
from luma.core.sprite_system import framerate_regulator
|
from luma.core.sprite_system import framerate_regulator
|
||||||
|
|
||||||
# load needed modules from RPi.GPIO
|
# load needed modules from RPi.GPIO
|
||||||
|
|||||||
@@ -80,13 +80,14 @@ cleanup() {
|
|||||||
|
|
||||||
msg "Finished! Remove SDcard"
|
msg "Finished! Remove SDcard"
|
||||||
|
|
||||||
|
ps -ef | grep matrix | grep -v grep | awk '{print $2}' | xargs kill
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- copy all images ----------------------------------------------------
|
# --- copy all images ----------------------------------------------------
|
||||||
|
|
||||||
copyFiles() {
|
copyFiles() {
|
||||||
#cleanup display and show copy screen
|
#cleanup display and show copy screen
|
||||||
#python /home/pi/pi-imgtank/files/python-scripts/copy.py
|
python /home/pi/PiDisplay/matrix.py &
|
||||||
|
|
||||||
# check if timestamp-file exists on SD-card. If not, create it
|
# check if timestamp-file exists on SD-card. If not, create it
|
||||||
if [ ! -f "$mountdir/.last_img" ]; then
|
if [ ! -f "$mountdir/.last_img" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user