display: improve shutdown message

This commit is contained in:
Romain Bazile 2021-05-11 00:56:11 +02:00
parent 78d8287176
commit 8eb2bd011c

View file

@ -100,6 +100,7 @@ class Display(object):
def stop(self):
logger.info("Display is out!")
self.display_text("Shutdown in 5s")
self.__clear()
@ -112,4 +113,4 @@ if __name__ == "__main__":
time.sleep(5)
display.display_text("Bye!")
time.sleep(5)
display.stop()
display.stop()