Skip to content

Commit 1ddc425

Browse files
Update rgbswirl (QT matrix) example to show PREFER_BUFFER
1 parent 55614af commit 1ddc425

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/is31fl3741_rgbswirl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
from rainbowio import colorwheel
66

77
from adafruit_is31fl3741.adafruit_rgbmatrixqt import Adafruit_RGBMatrixQT
8+
import adafruit_is31fl3741
89

9-
is31 = Adafruit_RGBMatrixQT(board.I2C())
10+
is31 = Adafruit_RGBMatrixQT(board.I2C(), allocate=adafruit_is31fl3741.PREFER_BUFFER)
1011
is31.set_led_scaling(0xFF)
1112
is31.global_current = 0xFF
1213
# print("Global current is: ", is31.global_current)
@@ -19,3 +20,4 @@
1920
for x in range(13):
2021
is31.pixel(x, y, colorwheel((y * 13 + x) * 2 + wheeloffset))
2122
wheeloffset += 1
23+
is31.show()

0 commit comments

Comments
 (0)