Created
June 25, 2018 11:14
-
-
Save ntoll/99761319c80d29fd6846e9fe8f8bb5af to your computer and use it in GitHub Desktop.
Code for reading the light-sensor readings from a Circuit Playground Express board by Adafruit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import analogio | |
import board | |
light = analogio.AnalogIn(board.LIGHT) | |
while True: | |
print((light.value,)) | |
time.sleep(0.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment