Autoformat Guardian Sword
This commit is contained in:
parent
7bc3b9cfd7
commit
fe7f6fb2d0
1 changed files with 21 additions and 21 deletions
|
|
@ -20,9 +20,9 @@ while True:
|
||||||
|
|
||||||
# For the first 14 pixels, make them orange,
|
# For the first 14 pixels, make them orange,
|
||||||
# starting from pixel number 0.
|
# starting from pixel number 0.
|
||||||
for i in range( 0, APIXELS ):
|
for i in range(0, APIXELS):
|
||||||
# Set Pixels to Orange Color
|
# Set Pixels to Orange Color
|
||||||
pixels[i] = ( 255, 50, 0 )
|
pixels[i] = (255, 50, 0)
|
||||||
# This sends the updated pixel color to the hardware.
|
# This sends the updated pixel color to the hardware.
|
||||||
pixels.write()
|
pixels.write()
|
||||||
# Delay for a period of time (in milliseconds).
|
# Delay for a period of time (in milliseconds).
|
||||||
|
|
@ -30,9 +30,9 @@ while True:
|
||||||
|
|
||||||
# Fill up 84 pixels with blue,
|
# Fill up 84 pixels with blue,
|
||||||
# starting with pixel number 14.
|
# starting with pixel number 14.
|
||||||
for i in range ( 14, BPIXELS ):
|
for i in range(14, BPIXELS):
|
||||||
# Set Pixels to Orange Color
|
# Set Pixels to Orange Color
|
||||||
pixels[i] = ( 0, 250, 200 )
|
pixels[i] = (0, 250, 200)
|
||||||
# This sends the updated pixel color to the hardware.
|
# This sends the updated pixel color to the hardware.
|
||||||
pixels.write()
|
pixels.write()
|
||||||
# Delay for a period of time (in milliseconds).
|
# Delay for a period of time (in milliseconds).
|
||||||
|
|
@ -40,9 +40,9 @@ while True:
|
||||||
|
|
||||||
# Fill up 9 pixels with orange,
|
# Fill up 9 pixels with orange,
|
||||||
# starting from pixel number 84.
|
# starting from pixel number 84.
|
||||||
for i in range ( 84, CPIXELS ):
|
for i in range(84, CPIXELS):
|
||||||
# Set Pixels to Orange Color
|
# Set Pixels to Orange Color
|
||||||
pixels[i] = ( 250, 50, 0 )
|
pixels[i] = (250, 50, 0)
|
||||||
# This sends the updated pixel color to the hardware.
|
# This sends the updated pixel color to the hardware.
|
||||||
pixels.write()
|
pixels.write()
|
||||||
# Delay for a period of time (in milliseconds).
|
# Delay for a period of time (in milliseconds).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue