From the course: Learning CircuitPython with Circuit Playground Express

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

NeoPixels programming

NeoPixels programming - Python Tutorial

From the course: Learning CircuitPython with Circuit Playground Express

Start my 1-month free trial

NeoPixels programming

- [Instructor] We've talked about some NeoPixels concepts and you've seen how you can reference the 10 NeoPixels on the circuit playground express using the rappel. Now we're going to look at using a program to control the NeoPixels. For this first program, we want the pixels to turn red one by one around the circle. The procedure or algorithm for this is simple. Start at pixel zero, set the color to red, then go to the next pixel and so on. It's a simple idea, but there's some details to work out. Let's head to the desktop to see how this works. Here I am on the desktop. The first thing I'm going to do is open Adam and set it to full screen and you can see my circuit playground express is running just the standard blink program. So I'm going to open up the main.py file and the circuit py drive and we can see the program here. I'm going to delete most of this. So if you have code…

Contents