From 17cbb63af26891bc676f439974910c9521634a04 Mon Sep 17 00:00:00 2001 From: Neythen Treloar Date: Mon, 7 Mar 2022 19:56:09 +0000 Subject: [PATCH] changed gpio slowdown and added updating for merge with master --- server.py | 2 +- stockTicker.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 8a3b2b7..e2deecb 100755 --- a/server.py +++ b/server.py @@ -36,7 +36,7 @@ import sys #api_caller.sendline('A') -#os.system("sudo ./check_update.sh") +os.system("./check_update.sh") displaying_screensaver = False uploading = False diff --git a/stockTicker.py b/stockTicker.py index fa45c63..b4e3520 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -57,7 +57,7 @@ class StockTicker(): options.chain_length = 2 options.parallel = 1 options.hardware_mapping = 'adafruit-hat' # If you have an Adafruit HAT: 'adafruit-hat' - options.gpio_slowdown = 4 + options.gpio_slowdown = 1 options.brightness = self.brightness self.matrix = RGBMatrix(options = options) print(dir(self.matrix)) @@ -1208,8 +1208,8 @@ class StockTicker(): image_list.append(self.blank) except Exception as e: - print(e) - #raise e + print(str(e)) + exc_type, exc_obj, exc_tb = sys.exc_info() fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] self.logf.write(str(e))