Makerspace at the Fulton School
I did LED programming. I did a loop with red and blue light. It’s reasonable to think that I also made a lamp. Because we shouldn’t focus on things outside. Instead, what is inside is the essence. This is extra point.
While true is an infinite loop. So there are 20 lights in total, and every every second bulb lights up blue. And they light repeatedly every 0.005 sec with 250 max brightness. Then each light next to the blue lights red, also repeated every 0.05 sec. I learned every line in the loop must be tab over.
while True:
for i in range (0,20,2):
pixels[i] = (5,10,250)
time.sleep(0.05)
pixels[i+1] = (20,5,0)
time.sleep (0.05)
Recent Comments