Skip to content

Commit 5a1b55c

Browse files
committed
renamed files and newhardware variable -> new_hardware
1 parent 6ee6fa1 commit 5a1b55c

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

display/physical_screen2.py display/physical_screen_v2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import time
33

44
from .display import Display
5-
from .seven_seg2 import SevenSegment
5+
from .seven_seg_v2 import SevenSegment
66

77

88
class PhysicalScreen:
File renamed without changes.

main.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def run_simulator():
4040
)
4141
@click.option(
4242
"-n",
43-
"--newhardware",
43+
"--new_hardware",
4444
is_flag=True,
4545
default=False,
4646
help="Run on new hardware.",
@@ -54,9 +54,9 @@ def run_simulator():
5454
help="Run in test mode. This shortens the demo time and user input time "
5555
"for testing purposes.",
5656
)
57-
def run_kiosk(simulate, newhardware, testing):
57+
def run_kiosk(simulate, new_hardware, testing):
5858
"""CLI command to run kiosk."""
59-
kiosk.run(simulate, testing=testing, newhardware=newhardware)
59+
kiosk.run(simulate, testing=testing, new_hardware=new_hardware)
6060

6161

6262
@cli.command("demo")
@@ -75,7 +75,7 @@ def run_kiosk(simulate, newhardware, testing):
7575
)
7676
@click.option(
7777
"-n",
78-
"--newhardware",
78+
"--new_hardware",
7979
is_flag=True,
8080
default=False,
8181
help="Run on new hardware.",
@@ -89,9 +89,9 @@ def run_kiosk(simulate, newhardware, testing):
8989
help="Run in test mode. This provides feedback for if your demo is "
9090
"running fast enough relative to the set frame rate.",
9191
)
92-
def run_demo(name, simulate, newhardware, testing):
92+
def run_demo(name, simulate, new_hardware, testing):
9393
"""CLI command to run demo."""
94-
demo.run(name, simulate, newhardware, testing=testing)
94+
demo.run(name, simulate, new_hardware, testing=testing)
9595

9696

9797
@cli.command("test")

runners/demo.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from runners import utils
99

1010

11-
def run(demo_name, simulate, newhardware, testing):
11+
def run(demo_name, simulate, new_hardware, testing):
1212
"""Main function that runs the demo.
1313
1414
Args:
@@ -25,8 +25,8 @@ def run(demo_name, simulate, newhardware, testing):
2525

2626
logger.debug("Starting virtual screen...")
2727
screen = VirtualScreen()
28-
elif newhardware:
29-
from display.physical_screen2 import ( # pylint: disable=import-outside-toplevel
28+
elif new_hardware:
29+
from display.physical_screen_v2 import ( # pylint: disable=import-outside-toplevel
3030
PhysicalScreen,
3131
)
3232

runners/kiosk.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def run_loop(screen, user_input_timeout=300, demo_time_override=None):
251251
screen.clear()
252252

253253

254-
def run(simulate, testing=False, newhardware=False):
254+
def run(simulate, testing=False, new_hardware=False):
255255
"""Runs the kiosk
256256
257257
Args:
@@ -267,8 +267,8 @@ def run(simulate, testing=False, newhardware=False):
267267

268268
logger.debug("Starting virtual screen")
269269
screen = VirtualScreen()
270-
elif newhardware:
271-
from display.physical_screen2 import ( # pylint: disable=import-outside-toplevel
270+
elif new_hardware:
271+
from display.physical_screen_v2 import ( # pylint: disable=import-outside-toplevel
272272
PhysicalScreen,
273273
)
274274

0 commit comments

Comments
 (0)