b18a78b5a1754b84c49d77b39ab11f853eb73359
6 # Transitional fix for breaking change in LTR559
7 from ltr559
import LTR559
14 format
='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s',
16 datefmt
='%Y-%m-%d %H:%M:%S')
18 logging
.info("""light.py - Print readings from the LTR559 Light & Proximity sensor.
26 lux
= ltr559
.get_lux()
27 prox
= ltr559
.get_proximity()
28 logging
.info("""Light: {:05.02f} Lux
30 """.format(lux
, prox
))
32 except KeyboardInterrupt: