From 0e3fb1d613a7f82a0bbd84f11ec94e2f29d93140 Mon Sep 17 00:00:00 2001 From: Gorden Date: Tue, 3 Aug 2021 15:33:13 +0200 Subject: [PATCH] debug stuff --- files/python-scripts/copy.py | 2 +- files/usr/local/sbin/copy_img2 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/python-scripts/copy.py b/files/python-scripts/copy.py index 05d755a..44f0bae 100644 --- a/files/python-scripts/copy.py +++ b/files/python-scripts/copy.py @@ -6,7 +6,7 @@ from luma.core.interface.serial import i2c, spi from luma.core.render import canvas 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 # load needed modules from RPi.GPIO diff --git a/files/usr/local/sbin/copy_img2 b/files/usr/local/sbin/copy_img2 index 897608d..dd3ba07 100755 --- a/files/usr/local/sbin/copy_img2 +++ b/files/usr/local/sbin/copy_img2 @@ -80,13 +80,14 @@ cleanup() { msg "Finished! Remove SDcard" + ps -ef | grep matrix | grep -v grep | awk '{print $2}' | xargs kill } # --- copy all images ---------------------------------------------------- copyFiles() { #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 if [ ! -f "$mountdir/.last_img" ]; then