Create light-plot.py

initial commit
This commit is contained in:
Mike Barela 2018-07-19 12:00:06 -04:00 committed by GitHub
parent 0942989ab8
commit 68696f402f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,11 @@
import time
import analogio
import board
# Create the light sensor object to read from
light = analogio.AnalogIn(board.LIGHT)
# Do readings, be sure to pause between readings
while True:
print((light.value, ))
time.sleep(0.1)