← MicroPython on Pi Pico and Projects
Project 2.3 Companion
Project 2.3 Stamp Sheet: The NeoPixel Bar
Name: Date: Period:
Use this with Project 2.3: Adding a NeoPixel Bar. Do the step, show it working, get your stamp, then write your short answer.
1. Wire it
One or more pixels light up from your code.
Which end of the stick does the data wire go in, and which Pico pin?
2. The knob controls the bar
Turn the knob and the bar grows and shrinks.
What does np.write() do? What happens if you leave it out?
3. Let the strip count itself
Your loop uses range(len(np)) and the bar still works.
Predict what np[8] = (0, 20, 0) does. Then try it. What happened?
4. Challenge: change the color
The lit pixels change color as you turn the knob.
Explain in your own words how you did it. What was your hardest bug?
5. Going further: your own palette
Your own 8 color palette is working on the strip. Plan it here first: a letter in each square.
Key (letter = color):