eInk Display offset

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
redward
 
Posts: 3
Joined: Thu Sep 20, 2012 11:20 am

eInk Display offset

Post by redward »

I'm trying to display an image on a 2.13" Monochrome eInk Featherwing with a Feather RP2040. For some reason the image is offsetting by about 10 pixels. Here's the code I'm using, straight from the provided example:

Code: Select all

import time
import board
import displayio
import adafruit_ssd1680

displayio.release_displays()

# This pinout works on a Metro M4 and may need to be altered for other boards.
spi = board.SPI()  # Uses SCK and MOSI
epd_cs = board.D9
epd_dc = board.D10
epd_reset = None  # Set to None for FeatherWing
epd_busy = None  # Set to None for FeatherWing

display_bus = displayio.FourWire(
    spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
)
time.sleep(1)

display = adafruit_ssd1680.SSD1680(
    display_bus,
    width=250,
    height=122,
    busy_pin=epd_busy,
    highlight_color=0xFF0000,
    rotation=270,
)

g = displayio.Group()

with open("/resistance_feather.bmp", "rb") as f:
    pic = displayio.OnDiskBitmap(f)
    # CircuitPython 6 & 7 compatible
    t = displayio.TileGrid(
        pic, pixel_shader=getattr(pic, "pixel_shader", displayio.ColorConverter())
    )
    # CircuitPython 7 compatible only
    # t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
    g.append(t)

    display.show(g)

    display.refresh()

    print("refreshed")

    time.sleep(120)
Here's how it's displaying:
PXL_20211203_191039318.small.jpg
PXL_20211203_191039318.small.jpg (46.38 KiB) Viewed 102 times
Here's the original image:

[The extension bmp has been deactivated and can no longer be displayed.]


redward
 
Posts: 3
Joined: Thu Sep 20, 2012 11:20 am

Re: eInk Display offset

Post by redward »

Also, I tried with two different RP2040s and got the same results, so if it's a hardware issue I think it's in the eInk display.

redward
 
Posts: 3
Joined: Thu Sep 20, 2012 11:20 am

Re: eInk Display offset

Post by redward »

Also, it seems to be doing it with the console output as well (note the white pixelation at the bottom and how Blinka is cut off in the top left corner):
PXL_20211203_205537652small.jpg
PXL_20211203_205537652small.jpg (50.56 KiB) Viewed 94 times

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”