Color Matching with the Light Sensor and CircuitPython: Adafruit Circuit Playground Express

Stephen just shared a new tutorial: "Color Matching with the Light Sensor and CircuitPython: Adafruit Circuit Playground Express"



The Adafruit Circuit Playground Express comes equipped with an analog light sensor, but it can be used for much more than just sensing light or darkness! The light sensor has a similar spectral response to the human eye. Its connected to analog pin A…

Read more

This code has been updated to be compatible with CircuitPython 3.x

Hi, I tried this code and I couldn’t get it to work. Noticed that the code in the video doesn’t match the code on the webpage. I want to use it in my STEM class.



Appreciate your efforts, your designs have been very helpful!

Tom

Hi Thomas,

The code was updated when CircuitPython changed to version 3. The video was unchanged, there are just a few syntax changes but the bulk of it is the same.

I just loaded this up on my Circuit Playground Express here and everything works as expected. What errors do you get when you run it with the serial monitor open in Mu?
Do you have the most recent libraries installed on the Circuit Playground Express?