display: improve shutdown message
This commit is contained in:
parent
78d8287176
commit
8eb2bd011c
|
@ -100,6 +100,7 @@ class Display(object):
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
logger.info("Display is out!")
|
logger.info("Display is out!")
|
||||||
|
self.display_text("Shutdown in 5s")
|
||||||
self.__clear()
|
self.__clear()
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,4 +113,4 @@ if __name__ == "__main__":
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
display.display_text("Bye!")
|
display.display_text("Bye!")
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
display.stop()
|
display.stop()
|
||||||
|
|
Loading…
Reference in a new issue