projects
/
EVA-2020-02-2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add deps for noise measurement
[EVA-2020-02-2.git]
/
examples
/
lcd.py
diff --git
a/examples/lcd.py
b/examples/lcd.py
index aa0e193604388cdd3ec8ac2de8b286b2bef639fc..7e50c94eb68c5a2f6788c5c0d9810100860a683e 100755
(executable)
--- a/
examples/lcd.py
+++ b/
examples/lcd.py
@@
-2,8
+2,14
@@
import ST7735
from PIL import Image, ImageDraw, ImageFont
import ST7735
from PIL import Image, ImageDraw, ImageFont
+import logging
-print("""lcd.py - Hello, World! example on the 0.96" LCD.
+logging.basicConfig(
+ format='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s',
+ level=logging.INFO,
+ datefmt='%Y-%m-%d %H:%M:%S')
+
+logging.info("""lcd.py - Hello, World! example on the 0.96" LCD.
Press Ctrl+C to exit!
Press Ctrl+C to exit!