summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-05-07 14:19:30 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-05-07 14:19:30 +0530
commit5149ef0e54b833e1c6d45d7715b923c45cc4badd (patch)
tree03f622fd8e03d5c614918b2b670f13bc83caea8b
parentf20b4f25156870c72d801b98600d8d0c2408b403 (diff)
lcd:Fixed timing issue in clearing screen in dispip script
-rw-r--r--lcd-ipaddress-display/dispip.py2
1 files changed, 1 insertions, 1 deletions
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()