We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc338c7 commit 0846fe0Copy full SHA for 0846fe0
examples/epd_pillow_image.py
@@ -9,7 +9,7 @@
9
import digitalio
10
import busio
11
import board
12
-from PIL import Image, ImageDraw
+from PIL import Image
13
from adafruit_epd.il0373 import Adafruit_IL0373
14
from adafruit_epd.il91874 import Adafruit_IL91874 # pylint: disable=unused-import
15
from adafruit_epd.il0398 import Adafruit_IL0398 # pylint: disable=unused-import
@@ -42,14 +42,7 @@
42
43
display.rotation = 1
44
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)
+image = Image.open("blinka.png")
53
54
# Scale the image to the smaller screen dimension
55
image_ratio = image.width / image.height
0 commit comments