Skip to content

Commit 0846fe0

Browse files
committed
Removed ImageDraw code which wasn't necessary
1 parent cc338c7 commit 0846fe0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

examples/epd_pillow_image.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import digitalio
1010
import busio
1111
import board
12-
from PIL import Image, ImageDraw
12+
from PIL import Image
1313
from adafruit_epd.il0373 import Adafruit_IL0373
1414
from adafruit_epd.il91874 import Adafruit_IL91874 # pylint: disable=unused-import
1515
from adafruit_epd.il0398 import Adafruit_IL0398 # pylint: disable=unused-import
@@ -42,14 +42,7 @@
4242

4343
display.rotation = 1
4444

45-
FILENAME = "blinka.png"
46-
47-
image = Image.new('RGB', (display.width, display.height))
48-
49-
# Get drawing object to draw on image.
50-
draw = ImageDraw.Draw(image)
51-
52-
image = Image.open(FILENAME)
45+
image = Image.open("blinka.png")
5346

5447
# Scale the image to the smaller screen dimension
5548
image_ratio = image.width / image.height

0 commit comments

Comments
 (0)