This commit is contained in:
Melissa LeBlanc-Williams 2025-03-07 21:48:04 +00:00 committed by GitHub
commit 6db1b59e77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,10 +9,11 @@ Supported products:
* https://www.adafruit.com/product/4947
* Adafruit 2.13" Tri-Color eInk Display FeatherWing
* https://www.adafruit.com/product/4814
* Adafruit 2.13" Mono eInk Display Breakout
* https://www.adafruit.com/product/4197
* Adafruit 2.13" Mono eInk Display FeatherWing
* https://www.adafruit.com/product/4195
"""
import time
@ -35,7 +36,7 @@ epd_busy = board.D7 # Set to None for FeatherWing
display_bus = FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000)
time.sleep(1)
# For issues with display not updating top/bottom rows correctly set colstart to 8
# For issues with display not updating top/bottom rows correctly set colstart to 8, 0, or -8
display = adafruit_ssd1680.SSD1680(
display_bus,
width=250,
@ -43,11 +44,13 @@ display = adafruit_ssd1680.SSD1680(
busy_pin=epd_busy,
highlight_color=0xFF0000,
rotation=270,
colstart=-8, # Comment out for older displays
)
g = displayio.Group()
# Note: Check the name of the file. Sometimes the dash is changed to an underscore
with open("/display-ruler.bmp", "rb") as f:
pic = displayio.OnDiskBitmap(f)
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)