Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions examples/pcd8544_pillow_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
from PIL import Image, ImageDraw, ImageFont
import adafruit_pcd8544

# Define the Reset Pin
oled_reset = digitalio.DigitalInOut(board.D4)

# Parameters to Change
BORDER = 5
FONTSIZE = 10
Expand Down Expand Up @@ -47,9 +44,10 @@
# Get drawing object to draw on image.
draw = ImageDraw.Draw(image)

# Draw a white background
# Draw a black background
draw.rectangle((0, 0, display.width, display.height), outline=255, fill=255)


# Draw a smaller inner rectangle
draw.rectangle((BORDER, BORDER, display.width - BORDER - 1, display.height - BORDER - 1),
outline=0, fill=0)
Expand Down