mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +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
|
# Initialize news manager with the loaded config
|
||||||
news_manager = NewsManager(config, display_manager)
|
news_manager = NewsManager(config, display_manager)
|
||||||
|
|
||||||
# Test the scrolling behavior
|
print("Testing news display. Press Ctrl+C to exit.")
|
||||||
# You can customize these parameters:
|
|
||||||
# - test_message: The message to scroll
|
# Run the news display in a loop
|
||||||
# - scroll_speed: Pixels to move per frame (higher = faster)
|
while True:
|
||||||
# - scroll_delay: Delay between scroll updates (lower = faster)
|
news_manager.display_news()
|
||||||
# - max_iterations: Maximum number of iterations to run (None = run indefinitely)
|
time.sleep(0.05) # Small delay between updates
|
||||||
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
|
|
||||||
)
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("\nTest interrupted by user")
|
print("\nTest interrupted by user")
|
||||||
|
|||||||
Reference in New Issue
Block a user