From 4dbcb1056433ce6b09643175eb46aa611477ac69 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Fri, 7 Mar 2025 13:43:50 -0800 Subject: [PATCH 1/2] Update simpletest for newer SSD1680 display --- examples/ssd1680_simpletest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/ssd1680_simpletest.py b/examples/ssd1680_simpletest.py index 1663419..15a49e1 100644 --- a/examples/ssd1680_simpletest.py +++ b/examples/ssd1680_simpletest.py @@ -9,10 +9,11 @@ * 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 @@ 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,12 +44,13 @@ busy_pin=epd_busy, highlight_color=0xFF0000, rotation=270, + colstart=-8, # Comment out for older displays ) g = displayio.Group() -with open("/display-ruler.bmp", "rb") as f: +with open("/display_ruler.bmp", "rb") as f: pic = displayio.OnDiskBitmap(f) t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader) g.append(t) From c5fea2a982f24f1d47afd9add464366f1d680b83 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Fri, 7 Mar 2025 13:46:45 -0800 Subject: [PATCH 2/2] Image filename is changed by actions, so added a note about it --- examples/ssd1680_simpletest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ssd1680_simpletest.py b/examples/ssd1680_simpletest.py index 15a49e1..0613236 100644 --- a/examples/ssd1680_simpletest.py +++ b/examples/ssd1680_simpletest.py @@ -50,7 +50,8 @@ g = displayio.Group() -with open("/display_ruler.bmp", "rb") as f: +# 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) g.append(t)