Skip to content

Commit 40e145a

Browse files
committed
CI: Add an out of range palette test image.
Tests for #227
1 parent 8c25a6e commit 40e145a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_e673.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def test_set_image_p256(GPIO, spidev):
2+
from PIL import Image
3+
4+
from inky import inky_e673
5+
6+
img = Image.new("P", (800, 480))
7+
8+
for x in range(256):
9+
img.putpixel((x, x), (x, 0, 0))
10+
11+
inky = inky_e673.Inky()
12+
13+
inky.set_image(img)

0 commit comments

Comments
 (0)