We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55614af commit 1ddc425Copy full SHA for 1ddc425
examples/is31fl3741_rgbswirl.py
@@ -5,8 +5,9 @@
5
from rainbowio import colorwheel
6
7
from adafruit_is31fl3741.adafruit_rgbmatrixqt import Adafruit_RGBMatrixQT
8
+import adafruit_is31fl3741
9
-is31 = Adafruit_RGBMatrixQT(board.I2C())
10
+is31 = Adafruit_RGBMatrixQT(board.I2C(), allocate=adafruit_is31fl3741.PREFER_BUFFER)
11
is31.set_led_scaling(0xFF)
12
is31.global_current = 0xFF
13
# print("Global current is: ", is31.global_current)
@@ -19,3 +20,4 @@
19
20
for x in range(13):
21
is31.pixel(x, y, colorwheel((y * 13 + x) * 2 + wheeloffset))
22
wheeloffset += 1
23
+ is31.show()
0 commit comments