GPIO temporarily disabled, starts now in fullscreen
This commit is contained in:
@@ -81,7 +81,7 @@ class GUI_PyGame:
|
|||||||
pygame.mouse.set_visible(False)
|
pygame.mouse.set_visible(False)
|
||||||
# Store screen and size
|
# Store screen and size
|
||||||
self.size = size
|
self.size = size
|
||||||
self.screen = pygame.display.set_mode(self.size)
|
self.screen = pygame.display.set_mode(self.size, pygame.FULLSCREEN)
|
||||||
# Clear screen
|
# Clear screen
|
||||||
self.clear()
|
self.clear()
|
||||||
|
|
||||||
@@ -246,11 +246,11 @@ def setup_gpio():
|
|||||||
|
|
||||||
def teardown(exit_code=0):
|
def teardown(exit_code=0):
|
||||||
display.teardown()
|
display.teardown()
|
||||||
GPIO.cleanup()
|
#GPIO.cleanup()
|
||||||
exit(exit_code)
|
exit(exit_code)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
setup_gpio()
|
#setup_gpio()
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
display.mainloop(image_idle)
|
display.mainloop(image_idle)
|
||||||
|
|||||||
Reference in New Issue
Block a user