Skip to content

Commit 383cb91

Browse files
authored
Merge pull request #8 from makermelissa/master
Fixed a couple of oopsies
2 parents c88c64c + 77dac84 commit 383cb91

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/pcd8544_pillow_demo.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
from PIL import Image, ImageDraw, ImageFont
1414
import adafruit_pcd8544
1515

16-
# Define the Reset Pin
17-
oled_reset = digitalio.DigitalInOut(board.D4)
18-
1916
# Parameters to Change
2017
BORDER = 5
2118
FONTSIZE = 10
@@ -47,9 +44,10 @@
4744
# Get drawing object to draw on image.
4845
draw = ImageDraw.Draw(image)
4946

50-
# Draw a white background
47+
# Draw a black background
5148
draw.rectangle((0, 0, display.width, display.height), outline=255, fill=255)
5249

50+
5351
# Draw a smaller inner rectangle
5452
draw.rectangle((BORDER, BORDER, display.width - BORDER - 1, display.height - BORDER - 1),
5553
outline=0, fill=0)

0 commit comments

Comments
 (0)