From 05d9f7c05729e86d63d38382911095098b4afd5c Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Sun, 27 Jul 2025 13:10:07 -0500 Subject: [PATCH] cant find why its not scrolling faster --- src/news_manager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/news_manager.py b/src/news_manager.py index 7e8438b0..bf04fac5 100644 --- a/src/news_manager.py +++ b/src/news_manager.py @@ -360,8 +360,7 @@ class NewsManager: self.prepare_headlines_for_display() self.rotation_count = 0 - # Add scroll delay to control speed - time.sleep(self.scroll_delay) + # Remove the delay - let the display controller timing control the speed return img @@ -521,6 +520,7 @@ class NewsManager: def get_dynamic_duration(self) -> int: """Get the calculated dynamic duration for display""" - # For smooth scrolling, use a fixed short duration so display controller calls us frequently - # This allows the scroll_delay to control the actual scrolling speed - return 1 # 1 second duration - display controller will call us every second \ No newline at end of file + # For smooth scrolling, use a very short duration so display controller calls us frequently + # The scroll_speed controls how many pixels we move per call + # Return the current calculated duration without fetching data + return self.dynamic_duration # 0.1 second duration - display controller will call us 10 times per second \ No newline at end of file