accept rotate init parameter
This commit is contained in:
parent
232e4836e9
commit
d217ed97b3
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue