Skip to content

Commit bd2219c

Browse files
committed
Added 240x135 Display support to Pillow Examples
1 parent d348ebc commit bd2219c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

examples/rgb_display_pillow_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
# Create the display:
2727
#disp = st7789.ST7789(spi, rotation=90 # 2.0" ST7789
2828
#disp = st7789.ST7789(spi, height=240, y_offset=80, rotation=90 # 1.3", 1.54" ST7789
29+
#disp = st7789.ST7789(spi, rotation=90, width=135, height=240, x_offset=53, y_offset=40, # 1.14" ST7789
2930
#disp = hx8357.HX8357(spi, rotation=180, # 3.5" HX8357
3031
#disp = st7735.ST7735R(spi, rotation=90, # 1.8" ST7735R
3132
#disp = st7735.ST7735R(spi, rotation=270, height=128, x_offset=2, y_offset=3, # 1.44" ST7735R

examples/rgb_display_pillow_image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import digitalio
1+
\import digitalio
22
import board
33
from PIL import Image, ImageDraw
44
import adafruit_rgb_display.ili9341 as ili9341
@@ -22,6 +22,7 @@
2222
# Create the display:
2323
#disp = st7789.ST7789(spi, rotation=90 # 2.0" ST7789
2424
#disp = st7789.ST7789(spi, height=240, y_offset=80, rotation=90 # 1.3", 1.54" ST7789
25+
#disp = st7789.ST7789(spi, rotation=90, width=135, height=240, x_offset=53, y_offset=40, # 1.14" ST7789
2526
#disp = hx8357.HX8357(spi, rotation=180, # 3.5" HX8357
2627
#disp = st7735.ST7735R(spi, rotation=90, # 1.8" ST7735R
2728
#disp = st7735.ST7735R(spi, rotation=270, height=128, x_offset=2, y_offset=3, # 1.44" ST7735R

examples/rgb_display_pillow_stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# Create the display:
2525
#disp = st7789.ST7789(spi, rotation=90 # 2.0" ST7789
2626
#disp = st7789.ST7789(spi, height=240, y_offset=80, rotation=90 # 1.3", 1.54" ST7789
27+
#disp = st7789.ST7789(spi, rotation=90, width=135, height=240, x_offset=53, y_offset=40, # 1.14" ST7789
2728
#disp = hx8357.HX8357(spi, rotation=180, # 3.5" HX8357
2829
#disp = st7735.ST7735R(spi, rotation=90, # 1.8" ST7735R
2930
#disp = st7735.ST7735R(spi, rotation=270, height=128, x_offset=2, y_offset=3, # 1.44" ST7735R

0 commit comments

Comments
 (0)