Skip to content

Breakout 2.13" SSD1680 4-gray #4197 - #105

Merged
makermelissa merged 11 commits into
adafruit:mainfrom
mikeysklar:feather-epd-grayscale4-2in13-breakout
Jun 9, 2026
Merged

makermelissa merged 11 commits into
adafruit:mainfrom
mikeysklar:feather-epd-grayscale4-2in13-breakout

Conversation

@mikeysklar

@mikeysklar mikeysklar commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Grayscale for 2.13" SSD1680 breakout and Bonnet

Three examples added:

  • feather_epd_grayscale_2in13_breakout.py
    • #4197 breakout on a Feather
  • rpi_epd_grayscale_2in13_breakout.py
  • rpi_epd_grayscale_2in13_bonnet.py

Tested

  • Feather RP2350 + eyespi breakout
  • Raspberry Pi 5 + EYESPI Beret
  • Raspberry Pi 5 + eInk Bonnet
IMG_0422 IMG_0423 2 13-bonnet-pi5 (1)

mikeysklar and others added 4 commits May 28, 2026 20:09
FPC-7528B (Adafruit #4197 breakout) and FPC-7519rev.b panels require
colstart=8 for correct source channel alignment. Adds colstart param
to __init__ and uses it in power_up() for both RAM window and counter.

Default colstart=0 preserves existing behavior for FPC-A002 (GDEY0213B74).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Adds a colstart parameter (default=0, backward-compatible) to correct
RAM window alignment for panels like FPC-7528B that need colstart=8.

Dead-zone bytes (RAM byte 0 to colstart//8-1) are written from the
current framebuf content at the end of power_up(), keeping physically-
visible source channels in sync with what the user drew. Skipped
entirely for colstart=0 panels — no behaviour change for existing
FPC-A002/GDEY0213B74 panels.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Demonstrates Adafruit_SSD1680_Grayscale4 with the #4197 2.13" Mono
eInk Breakout (FPC-7528B) via EYESPI Breakout on a Feather RP2040/2350.

Shows 4-bar testcard (white/light-gray/dark-gray/black) using
Adafruit_EPD color constants. Uses colstart=8 and vcom=0x1C for the
FPC-7528B panel variant.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The example previously carried both Feather and commented-out Raspberry Pi
pin blocks in one file, which was confusing. Split by platform: this file is
now Feather-only. The Raspberry Pi / Blinka variant will be added separately
(rpi_epd_grayscale4_2in13_breakout.py) after it is verified on a Pi.

Verified on a Feather RP2350 + EYESPI breakout (#4197, FPC-7528B panel):
clean 4-bar grayscale, colstart=8. The adafruit_epd path writes the dead-zone
column from the framebuffer at refresh time, so colstart=8 renders the top
edge correctly.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mikeysklar
mikeysklar force-pushed the feather-epd-grayscale4-2in13-breakout branch from 3d7998f to 1ae5cb6 Compare May 29, 2026 16:59
@mikeysklar

Copy link
Copy Markdown
Contributor Author

@BlitzCityDIY

mikeysklar and others added 4 commits May 29, 2026 16:42
Replace the 159-line one-byte-per-line bytes([...]) waveform table with a
17-line bytes.fromhex() laid out one waveform row per line (5 VS rows, 12 TP
timing groups, XON/FR), each annotated. Byte-for-byte identical to the prior
table; passes ruff format and check (E501 at line-length 100).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…n/colstart

- Rename feather_epd_grayscale4_2in13_breakout.py -> feather_epd_grayscale_2in13_breakout.py
- Replace the 4-bar testcard with a ThinkInk info card (product text + a 4-level
  gray ramp), ported from the displayio ssd1680_2.13_grayscale.py example
- rotation=3 (was 1, which drew 180 upside-down; matches displayio's 270)
- colstart=0 for FPC-7528B (was 8, which rendered an 8px dead-zone band along the
  long edge; FPC-7528B has no left dead-zone). Both #4197 panel variants use 0.
Verified on Feather RP2350 + EYESPI breakout + FPC-7528B over USB webcam.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The 2.13" SSD1680 4-gray driver only ships colstart=0 panels (FPC-7528B
breakout, FPC-A002/GDEY0213B74 bonnet), so the colstart>0 dead-zone RAM
write branch was never exercised and is dropped. The colstart parameter,
the colstart-aware RAM window, and set_ram_address are unchanged. Also
correct the docstring, which wrongly listed colstart=8 for FPC-7528B.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Two info-card examples (panel name/resolution/driver + a 4-level gray ramp,
so the panel self-identifies on screen), one per board, since the DC pin and
display orientation differ:
  - rpi_epd_grayscale_2in13_breakout.py: #4197 breakout via EYESPI Pi Beret,
    DC=GPIO25, rotation=3.
  - rpi_epd_grayscale_2in13_bonnet.py:   #4687 eInk Pi Bonnet, DC=GPIO22,
    rotation=1.

Both verified on a Raspberry Pi 5: mono baseline plus 4-gray render cleanly
(white/light/dark/black, no speckle). Headers note the font5x8.bin Blinka
dependency and the Pi 5 spi0-0cs overlay.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds 4-gray grayscale support guidance for the 2.13" SSD1680 breakout/bonnet by introducing new example scripts and updating the SSD1680 4-gray driver to support RAM column alignment via a configurable colstart.

Changes:

  • Added three new 4-gray grayscale examples for Feather and Raspberry Pi (breakout + bonnet wiring variants).
  • Refactored the SSD1680 4-gray LUT definition for readability/maintainability.
  • Added colstart support to the SSD1680 4-gray driver and applied it to the RAM window setup.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
examples/rpi_epd_grayscale_2in13_breakout.py New Raspberry Pi (Blinka) grayscale example for #4197 breakout via EYESPI Pi Beret.
examples/rpi_epd_grayscale_2in13_bonnet.py New Raspberry Pi (Blinka) grayscale example for #4687 bonnet wiring.
examples/feather_epd_grayscale_2in13_breakout.py New Feather grayscale example for #4197 breakout.
adafruit_epd/ssd1680.py Updates SSD1680 4-gray driver: LUT refactor and colstart-based RAM window/addressing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread adafruit_epd/ssd1680.py Resolved
Comment thread adafruit_epd/ssd1680.py Resolved
Comment thread adafruit_epd/ssd1680.py Resolved
Comment thread adafruit_epd/ssd1680.py Resolved
@BlitzCityDIY

Copy link
Copy Markdown
Contributor

@makermelissa is this good to merge?

@makermelissa

Copy link
Copy Markdown
Collaborator

Sorry, I missed the review request. I'll take a look at it.

@makermelissa makermelissa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

@makermelissa
makermelissa merged commit 266a5a6 into adafruit:main Jun 9, 2026
1 check passed
@mikeysklar

Copy link
Copy Markdown
Contributor Author

Thank you @makermelissa and @BlitzCityDIY .

I believe there are four more gray panel ports left.

Two easy (SSD1680 variants) and two harder SSD1681/SSD1683. Which translates to ~12 PRs since there are three libraries per panel.

Part # Form Factor Controller Resolution
4196 Breakout w/ SRAM + EYESPI SSD1681 200×200
6383 Bare Display SSD1680Z 250×122
6392 Bare Display SSD1680 296×152
6381 Bare Display SSD1683 400×300

adafruit-adabot pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Aug 15, 2026
Updating https://github.com/adafruit/Adafruit_CircuitPython_EPD to 2.20.0 from 2.19.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#112 from mikeysklar/feather-epd-grayscale4-1in54-breakout
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#108 from mikeysklar/feather-epd-grayscale4-2in66-6392
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#110 from mikeysklar/feather-epd-grayscale4-2in13-6383
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#111 from mikeysklar/feather-epd-grayscale4-4in2-6381
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#105 from mikeysklar/feather-epd-grayscale4-2in13-breakout
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#106 from mikeysklar/feather-epd-grayscale4-2in9
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#107 from mikeysklar/feather-epd-grayscale4-2in13-featherwing
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#104 from mikeysklar/ssd1680-grayscale4-gdey0213b74

Updating https://github.com/adafruit/Adafruit_CircuitPython_GPS to 3.11.10 from 3.11.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_GPS#128 from grgrant/fix-gtop_i2c_edge_case

Updating https://github.com/adafruit/Adafruit_CircuitPython_LIS331 to 1.1.0 from 1.0.25:
  > Merge pull request adafruit/Adafruit_CircuitPython_LIS331#10 from FoamyGuy/alternate_chip_id

Updating https://github.com/adafruit/Adafruit_CircuitPython_NAU88L21 to 1.0.1 from 1.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_NAU88L21#1 from FoamyGuy/left_justified_change

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1680 to 2.2.0 from 2.1.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#46 from mikeysklar/ssd1683-4.2-6381
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#45 from mikeysklar/grayscale4-2in13-bare-6383
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#44 from mikeysklar/grayscale4-2in66-6392
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#43 from mikeysklar/grayscale4-2in13-featherwing
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#42 from mikeysklar/grayscale4-2in9-featherwing
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#41 from mikeysklar/grayscale4-breakout-2in13

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1681 to 2.1.0 from 2.0.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1681#17 from mikeysklar/grayscale4-1in54-breakout

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bitmap_Font to 2.4.3 from 2.4.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_Bitmap_Font#76 from mtraver/glyph-cache-and-tests

Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Emoji_Text to 1.0.5 from 1.0.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Emoji_Text#7 from FoamyGuy/fix_xy_props

Updating https://github.com/adafruit/Adafruit_CircuitPython_Pixelbuf to 2.1.0 from 2.0.12:
  > Merge pull request adafruit/Adafruit_CircuitPython_Pixelbuf#15 from giri256/feat/slice-single-color

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 4.0.10 from 4.0.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#74 from FoamyGuy/fix_docs_build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants