Activated while loop
This commit is contained in:
parent
3897e03dbc
commit
0a8e9281cd
@ -26,9 +26,10 @@ calibration_countdown = 'initial'
|
||||
image_cleanup()
|
||||
|
||||
"""Check time and calibrate display if time """
|
||||
#while True:
|
||||
while True:
|
||||
now = arrow.now(tz=get_tz())
|
||||
for _ in range(1):
|
||||
image = Image.new('RGB', (display_width, display_height), background_colour)
|
||||
|
||||
"""------------------Add short info------------------"""
|
||||
print('Current Date: {0} \nCurrent Time: {1}'.format(now.format(
|
||||
@ -77,6 +78,7 @@ for _ in range(1):
|
||||
image.paste(rss_image, (0, bottom_section_offset))
|
||||
|
||||
image.save(image_path + 'canvas.png')
|
||||
display.reduce_colours(image)
|
||||
|
||||
"""---------Refreshing E-Paper with newly created image-----------"""
|
||||
display.show_image(image)
|
||||
@ -101,4 +103,4 @@ for _ in range(1):
|
||||
print('{0} Minutes left until next refresh'.format(minutes[0]))
|
||||
|
||||
del update_timings, minutes, image
|
||||
#sleep(refresh_countdown)
|
||||
sleep(refresh_countdown)
|
||||
|
Loading…
Reference in New Issue
Block a user