Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit 3b9f288

Browse files
committed
Adds check for setting rgb to rgbw in simpletest
1 parent f22b300 commit 3b9f288

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/pypixelbuf_simpletest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ def _transmit(self, buffer): # pylint: disable=unused-argument
1212
self.called = True
1313

1414

15-
buf = TestBuf(20, "RGB", 1.0, auto_write=True)
15+
buf = TestBuf(20, "RGBW", 1.0, auto_write=True)
1616
buf[0] = (1, 2, 3)
17+
buf[1] = (1, 2, 3, 4)
18+
buf[2] = (2, 2, 2)
1719

1820
print(buf[0])
1921
print(buf[0:2])

0 commit comments

Comments
 (0)