From d217ed97b38899091acd9ddb4fd3610db5aa4edd Mon Sep 17 00:00:00 2001 From: frank Date: Mon, 20 Feb 2023 22:47:31 -0500 Subject: [PATCH] accept rotate init parameter --- electric_sieve/ElectricSieve.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electric_sieve/ElectricSieve.py b/electric_sieve/ElectricSieve.py index b4584a2..54f9cce 100644 --- a/electric_sieve/ElectricSieve.py +++ b/electric_sieve/ElectricSieve.py @@ -34,7 +34,7 @@ class ElectricSieve(Game): PIN_LED_UP = 22 PIN_LED_DOWN = 23 - def __init__(self, suppress_gpio_init=False): + def __init__(self, suppress_gpio_init=False, rotate=False): """ Initialize super class, GPIO input, background, and activate the title screen. """ @@ -67,8 +67,8 @@ class ElectricSieve(Game): self.PIN_BUTTON_RIGHT: 1 } - # Rotate the display if requested on the command line or in the configuration - if self.check_command_line("-rotate"): + # Rotate the display if requested + if rotate: self.configuration.set("display", "rotate", True) self.rotated = False if self.get_configuration("display", "rotate"):