Skip to content

examples/parallel/tufty: implement Displayer interface - #60

Merged
soypat merged 1 commit into
tinygo-org:mainfrom
davecheney:davecheney-displayer-stubs
Sep 10, 2026
Merged

soypat merged 1 commit into
tinygo-org:mainfrom
davecheney:davecheney-displayer-stubs

Conversation

@davecheney

Copy link
Copy Markdown
Contributor

ST7789 already provides Size, but the Tufty example's local Displayer interface was missing concrete SetPixel and Display methods.

This adds the two minimal stubs, asserts that ST7789 implements Displayer, and fixes the SetPizel comment typo. SetPixel delegates to the existing one-pixel FillRectangle; Display remains a no-op because writes go directly to panel RAM.

Validation:

  • gofmt -l rp2-pio/examples/parallel/tufty/
  • tinygo build -target=tufty2040 -o /tmp/tufty-displayer-min.uf2 ./rp2-pio/examples/parallel/tufty

@davecheney

Copy link
Copy Markdown
Contributor Author

@conejoninja @soypat small tweak so ST7789 implements Displayer

Add the trivial SetPixel and Display stubs requested in the PR tinygo-org#55 review, plus a compile-time interface assertion. Fix the SetPixel interface comment typo.
@davecheney
davecheney force-pushed the davecheney-displayer-stubs branch from b0eb056 to c35c3bc Compare September 10, 2026 01:03
@soypat
soypat merged commit e17c51e into tinygo-org:main Sep 10, 2026
1 check passed
@davecheney
davecheney deleted the davecheney-displayer-stubs branch September 10, 2026 08:13
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.

2 participants