Adafruit_Learning_System_Gu.../Make_It_Sense/light-plot.py
Mike Barela 68696f402f
Create light-plot.py
initial commit
2018-07-19 12:00:06 -04:00

11 lines
236 B
Python

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)