A neopixel takes a value of a color brightness from 0 to 255. Each of the (255, 255, 255) in the default block signifies a color: red, green, and blue.
For this loop, we will just make red color gradually go brighter.
Note that in this for loop, the first iteration would be i = 0 while the last iteration is i = 255. We specify the “end” as 256 because we want our loop to go up until the very last number BEFORE 256, which is 255.
Finally, make sure to add a sleep after np.write(). A sleep duration of 0.01 seconds will do.