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
Merge pull request #72 from petermcd/example-fixes
[EVA-2020-02-2.git]
/
examples
/
light.py
diff --git
a/examples/light.py
b/examples/light.py
index 3442fb489d0ac677636255458a2029a9c5511ad7..db61e6a28d85b122d3cc391f0834ff700ea8e122 100755
(executable)
--- a/
examples/light.py
+++ b/
examples/light.py
@@
-1,8
+1,14
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
import time
import time
-import ltr559
import logging
import logging
+try:
+ # Transitional fix for breaking change in LTR559
+ from ltr559 import LTR559
+ ltr559 = LTR559()
+except ImportError:
+ import ltr559
+
logging.basicConfig(
format='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s',
logging.basicConfig(
format='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s',