mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +00:00
Merge branch 'main' into Stocks
Signed-off-by: Chuck <33324927+ChuckBuilds@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,9 @@ print(f"Current working directory: {os.getcwd()}")
|
||||
|
||||
def main():
|
||||
"""Test the StockNewsManager class directly."""
|
||||
|
||||
display_manager = None
|
||||
|
||||
try:
|
||||
# Load configuration
|
||||
config_manager = ConfigManager()
|
||||
@@ -28,11 +30,13 @@ def main():
|
||||
# Initialize display manager
|
||||
display_manager = DisplayManager(display_config)
|
||||
|
||||
|
||||
# Clear the display and show a test pattern
|
||||
display_manager.clear()
|
||||
display_manager.update_display()
|
||||
time.sleep(1) # Give time to see the test pattern
|
||||
|
||||
|
||||
# Initialize news manager with the loaded config
|
||||
news_manager = StockNewsManager(config, display_manager)
|
||||
|
||||
@@ -54,6 +58,7 @@ def main():
|
||||
display_manager.clear()
|
||||
display_manager.update_display()
|
||||
display_manager.cleanup()
|
||||
|
||||
print("Test completed")
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user