Skip to content

Add Milk-V Duo 256M port of 2.13" mono PixPaper test program - #9

Merged
wigcheng merged 1 commit into
open-ep:masterfrom
seanwascoding:feature/213-mono-milkv-duo-256m
Sep 21, 2026
Merged

wigcheng merged 1 commit into
open-ep:masterfrom
seanwascoding:feature/213-mono-milkv-duo-256m

Conversation

@seanwascoding

Copy link
Copy Markdown
Contributor

Description

Port the 2.13" monochrome PixPaper test program to the Milk-V Duo 256M.

The test program drives the panel through /dev/spidev0.0 at 5 MHz, with DC/RST/BUSY connected to gpiochip0 lines 22/24/23.

Supported run modes are selected by the first argument:

  • (none): Full monochrome refresh of img0, repeated every 30 seconds
  • fast: Same image using the 0xC7 fast-update sequence
  • gray4: 4-level grayscale using the 153-byte lut_4G waveform
  • partial: Two-image partial-refresh swap demo
  • clock: HH:MM:SS clock with one partial refresh per second

The partial and clock demos use a 250 × 128 landscape framebuffer with a 16-byte stride on the gate axis. The panel has 122 visible rows.

Hardware

  • Board: Milk-V Duo 256M
  • Panel: 2.13" monochrome PixPaper
  • SPI: /dev/spidev0.0
  • SPI frequency: 5 MHz
  • DC: gpiochip0 line 22
  • RST: gpiochip0 line 24
  • BUSY: gpiochip0 line 23

Port of the 2.13" mono PixPaper test program to the Milk-V Duo 256M,
driving the panel over /dev/spidev0.0 at 5 MHz with DC/RST/BUSY on
gpiochip0 lines 22/24/23.

Supported run modes, selected by the first argument:
  (none)   full mono refresh of img0, repeated every 30 s
  fast     same image with the 0xC7 fast update sequence
  gray4    4-level grayscale via the 153-byte lut_4G waveform
  partial  two-image partial swap demo
  clock    HH:MM:SS, partial refresh once per second

The partial and clock demos use a 250x128 landscape frame buffer
(16-byte stride on the gate axis), of which 122 rows are visible.

Signed-off-by: Sean Chang <seanwascoding@gmail.com>
@wigcheng

Copy link
Copy Markdown
Contributor

Nice work! Thanks for your effort!

@wigcheng wigcheng closed this Sep 21, 2026
@wigcheng wigcheng reopened this Sep 21, 2026
@wigcheng
wigcheng merged commit 7d450b2 into open-ep:master Sep 21, 2026
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