/ examples / circuitplayground_light.py
circuitplayground_light.py
1  """This example uses the light sensor on your CPX, located next to the picture of the eye. Try
2  shining a flashlight on your CPX, or covering the light sensor with your finger to see the values
3  increase and decrease."""
4  import time
5  from adafruit_circuitplayground.express import cpx
6  
7  while True:
8      print("Light:", cpx.light)
9      time.sleep(1)