fixed GPIO handler error
This commit is contained in:
parent
9b752bde21
commit
b8776a6f7f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user