accept rotate init parameter

This commit is contained in:
ohsqueezy 2023-02-20 22:47:31 -05:00
parent 232e4836e9
commit d217ed97b3
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class ElectricSieve(Game):
PIN_LED_UP = 22 PIN_LED_UP = 22
PIN_LED_DOWN = 23 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. Initialize super class, GPIO input, background, and activate the title screen.
""" """
@ -67,8 +67,8 @@ class ElectricSieve(Game):
self.PIN_BUTTON_RIGHT: 1 self.PIN_BUTTON_RIGHT: 1
} }
# Rotate the display if requested on the command line or in the configuration # Rotate the display if requested
if self.check_command_line("-rotate"): if rotate:
self.configuration.set("display", "rotate", True) self.configuration.set("display", "rotate", True)
self.rotated = False self.rotated = False
if self.get_configuration("display", "rotate"): if self.get_configuration("display", "rotate"):