Infobildschirm vor countdown entfernt (hat die Leute zu sehr verwirrt)

This commit is contained in:
root 2018-02-11 14:24:26 +01:00
parent ce71c6803d
commit f8bcda88f7

View File

@ -122,12 +122,12 @@ screen = pygame.display.set_mode((WIDTH,HEIGHT))
# LOAD OVERLAYS # LOAD OVERLAYS
loading = pygame.image.load(GRAPHICS_DIR + "/loading.png")
loading_rect = loading.get_rect()
begin = pygame.image.load(GRAPHICS_DIR + "/begin.png") begin = pygame.image.load(GRAPHICS_DIR + "/begin.png")
begin_rect = begin.get_rect() begin_rect = begin.get_rect()
loading = pygame.image.load(GRAPHICS_DIR + "/loading.png")
loading_rect = loading.get_rect()
yes = pygame.image.load(GRAPHICS_DIR + "/yes.png") yes = pygame.image.load(GRAPHICS_DIR + "/yes.png")
yes_rect = yes.get_rect() yes_rect = yes.get_rect()
yes_rect.y = 340 yes_rect.y = 340
@ -148,8 +148,6 @@ saved_rect = saved.get_rect()
canceled = pygame.image.load(GRAPHICS_DIR + "/canceled.png") canceled = pygame.image.load(GRAPHICS_DIR + "/canceled.png")
canceled_rect = canceled.get_rect() canceled_rect = canceled.get_rect()
#~ img_info = Image.open(GRAPHICS_DIR + '/info.png')
# LOAD COUNTDOWN OVERLAYS # LOAD COUNTDOWN OVERLAYS
@ -167,16 +165,6 @@ for i in range(0, COUNTDOWN):
# LOAD INFORMATION OVERLAY
img_info = Image.open(GRAPHICS_DIR + '/info.png')
pad_info = Image.new('RGB', (
((img_info.size[0] + 31) // 32) * 32,
((img_info.size[1] + 15) // 16) * 16,
))
pad_info.paste(img_info, (0, 0))
# FUNCTIONS ======================================================================================== # FUNCTIONS ========================================================================================
def waitForEvent(): def waitForEvent():
@ -252,15 +240,7 @@ def makePhotos():
camera.hflip = True camera.hflip = True
camera.resolution = (2592, 1944) camera.resolution = (2592, 1944)
camera.rotation = 90 camera.rotation = 90
# PREVIEW
camera.start_preview() camera.start_preview()
o = camera.add_overlay(pad_info.tostring(), size=img_info.size)
o.alpha = 255
o.layer = 3
sleep(3)
camera.remove_overlay(o)
sleep(1)
# COUNTDOWN # COUNTDOWN
GPIO.output(7, GPIO.HIGH) GPIO.output(7, GPIO.HIGH)