Skip to content

Commit

Permalink
Merge pull request #109 from jerbzz/name-badge-scaling
Browse files Browse the repository at this point in the history
Add scaling for 250x122 SSD1608 pHATs
  • Loading branch information
Gadgetoid committed Apr 6, 2021
2 parents c491cac + 10c14a7 commit 75f12b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/name-badge.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
scale_size = 2.20
padding = 30

if inky_display.resolution == (250, 122):
scale_size = 1.30
padding = -5

# Create a new canvas to draw on

img = Image.new("P", inky_display.resolution)
Expand Down

0 comments on commit 75f12b4

Please sign in to comment.