mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
Update test_news_manager.py
This commit is contained in:
@@ -30,18 +30,12 @@ def main():
|
||||
# Initialize news manager with the loaded config
|
||||
news_manager = NewsManager(config, display_manager)
|
||||
|
||||
# Test the scrolling behavior
|
||||
# You can customize these parameters:
|
||||
# - test_message: The message to scroll
|
||||
# - scroll_speed: Pixels to move per frame (higher = faster)
|
||||
# - scroll_delay: Delay between scroll updates (lower = faster)
|
||||
# - max_iterations: Maximum number of iterations to run (None = run indefinitely)
|
||||
news_manager.test_scroll(
|
||||
test_message="This is a test of the NewsManager scrolling behavior. You can adjust the speed and delay to find the optimal settings.",
|
||||
scroll_speed=2, # Adjust this to change scroll speed
|
||||
scroll_delay=0.05, # Adjust this to change scroll smoothness
|
||||
max_iterations=3 # Set to None to run indefinitely
|
||||
)
|
||||
print("Testing news display. Press Ctrl+C to exit.")
|
||||
|
||||
# Run the news display in a loop
|
||||
while True:
|
||||
news_manager.display_news()
|
||||
time.sleep(0.05) # Small delay between updates
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print("\nTest interrupted by user")
|
||||
|
||||
Reference in New Issue
Block a user