From 5149ef0e54b833e1c6d45d7715b923c45cc4badd Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sun, 7 May 2023 14:19:30 +0530 Subject: lcd:Fixed timing issue in clearing screen in dispip script --- lcd-ipaddress-display/dispip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcd-ipaddress-display/dispip.py b/lcd-ipaddress-display/dispip.py index 22b044c..0488135 100644 --- a/lcd-ipaddress-display/dispip.py +++ b/lcd-ipaddress-display/dispip.py @@ -13,8 +13,8 @@ try: while True: display.lcd_display_string("IP Address: ", 1) display.lcd_display_string(str(IP), 2) # Display the IP address on the second line - # sleep(1) # Uncomment the following line to loop with 1 sec delay except KeyboardInterrupt: # If there is a KeyboardInterrupt (when you press ctrl+c), exit the program and cleanup + sleep(.2) print("Cleaning up!") display.lcd_clear() -- cgit v1.2.3