Skip to content

Commit 76a8e63

Browse files
committed
Explain the rainbow table
1 parent 22b854d commit 76a8e63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/is31fl3731_ledshim_rainbow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# initial display if you are using Pimoroni LED SHIM
99
display = adafruit_is31fl3731.LedShim(i2c)
1010

11+
# This list 28 colors from a rainbow...
1112
rainbow=[
1213
(255, 0, 0) , (255, 54, 0) , (255, 109, 0) , (255, 163, 0) ,
1314
(255, 218, 0) , (236, 255, 0) , (182, 255, 0) , (127, 255, 0) ,
@@ -28,4 +29,4 @@
2829
for offset in range(28):
2930
for x in range(28):
3031
r,g,b = rainbow[(x+offset)%28]
31-
display.pixelrgb(x, r, g, b)
32+
display.pixelrgb(x, r, g, b)

0 commit comments

Comments
 (0)