We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6172dc8 commit fb58acaCopy full SHA for fb58aca
demo_clock_and_IP.py
@@ -5,7 +5,7 @@
5
from datetime import datetime
6
from subprocess import check_output
7
display = drivers.Lcd()
8
-IP = check_output(["hostname", "-I"]).split()[0].decode('ascii')
+IP = check_output(["hostname", "-I"], encoding="utf8").split()[0]
9
try:
10
print("Writing to display")
11
while True:
0 commit comments