Skip to content

Commit f8b7ef4

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_e673.py

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

0 commit comments

Comments
 (0)