From 18d25df89845c13b6b769e0c9799ee790e365966 Mon Sep 17 00:00:00 2001 From: BlueFox Date: Mon, 28 Oct 2024 19:12:07 +0000 Subject: [PATCH] [WelcomeScreen.py] Added waiting in the fade out animation (missed that in an earlier commit) Also improved memory usage a little bit by import the sleep method only, not the whole time library --- WelcomeScreen.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/WelcomeScreen.py b/WelcomeScreen.py index a57da76..5a6f76a 100644 --- a/WelcomeScreen.py +++ b/WelcomeScreen.py @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ -import time +from time import sleep class WelcomeScreen: @@ -100,7 +100,7 @@ class WelcomeScreen: self.lcd.move_to(0,y_offset) self.lcd.putstr(self.started_msg.center(16)) - time.sleep(wait_after_cycles) + sleep(wait_after_cycles) # now fade down if enabled via the params if fade_down["enabled"]: @@ -122,4 +122,5 @@ class WelcomeScreen: old_display = old_display[:-self.columns] lines_before = " " * (self.columns*self.lines-len(old_display)) self.lcd.putstr(lines_before + old_display) - + sleep(wait_between) + sleep(wait_after)