mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
cant find why its not scrolling faster
This commit is contained in:
@@ -360,8 +360,7 @@ class NewsManager:
|
|||||||
self.prepare_headlines_for_display()
|
self.prepare_headlines_for_display()
|
||||||
self.rotation_count = 0
|
self.rotation_count = 0
|
||||||
|
|
||||||
# Add scroll delay to control speed
|
# Remove the delay - let the display controller timing control the speed
|
||||||
time.sleep(self.scroll_delay)
|
|
||||||
|
|
||||||
return img
|
return img
|
||||||
|
|
||||||
@@ -521,6 +520,7 @@ class NewsManager:
|
|||||||
|
|
||||||
def get_dynamic_duration(self) -> int:
|
def get_dynamic_duration(self) -> int:
|
||||||
"""Get the calculated dynamic duration for display"""
|
"""Get the calculated dynamic duration for display"""
|
||||||
# For smooth scrolling, use a fixed short duration so display controller calls us frequently
|
# For smooth scrolling, use a very short duration so display controller calls us frequently
|
||||||
# This allows the scroll_delay to control the actual scrolling speed
|
# The scroll_speed controls how many pixels we move per call
|
||||||
return 1 # 1 second duration - display controller will call us every second
|
# 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
|
||||||
Reference in New Issue
Block a user