fixed GPIO handler error

This commit is contained in:
Nicholas Dyer 2023-05-12 23:28:00 -04:00
parent 9b752bde21
commit b8776a6f7f

View File

@ -41,6 +41,7 @@ def game():
# The game is normally rendered at 80 pixels and upscaled from there. If changing displays, change the
# screen_size to reflect what the resolution of the new display is.
if gpio_handler.ON_HARDWARE:
gpio_handler.setup()
screen_size = 240
pygame.mouse.set_visible(False)
window = pygame.display.set_mode((screen_size, screen_size), pygame.FULLSCREEN)
@ -85,4 +86,5 @@ def main():
"""
game()
gpio_handler.teardown()
pygame.quit()