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
Sleep before first PMS5003 reading
[EVA-2020-02-2.git]
/
examples
/
all-in-one-no-pm.py
diff --git
a/examples/all-in-one-no-pm.py
b/examples/all-in-one-no-pm.py
index 54860126bdc3ee37aa02d367f6f9f83e3755372d..6bb6873d3b845e01938a488d791810b2814f8fcb 100755
(executable)
--- a/
examples/all-in-one-no-pm.py
+++ b/
examples/all-in-one-no-pm.py
@@
-5,7
+5,12
@@
import colorsys
import os
import sys
import ST7735
import os
import sys
import ST7735
-import ltr559
+try:
+ # Transitional fix for breaking change in LTR559
+ from ltr559 import LTR559
+ ltr559 = LTR559()
+except ImportError:
+ import ltr559
from bme280 import BME280
from enviroplus import gas
from bme280 import BME280
from enviroplus import gas