Color Wipe
This lesson shows you how to change the color of the entire LED strip pixel by pixel. There will be two delays that we can control:
- the delay between each pixel update - this is usually about 1/20th of a second
- the delay between colors - this is usually about 1 to 2 seconds
A Simple Color Wipe Function
To write this program, we will create a simple Python function that will cycle through all the colors in a list. Our color list will look like this:
1 2 3 4 5 |
|
Now with this list
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|