chickenhouse/light_sensor_test.py
2018-08-27 11:26:29 +02:00

11 lines
175 B
Python
Executable File

#!/usr/bin/python2
from light_sensor import light_sensor
from time import sleep
ls = light_sensor(1, 0x23)
while True:
print "light: " + str(ls.read()) + " lx."
sleep(1)