Skip to content

Sound through the DVI cable: picodvi.AudioOut #11509

Description

@mikeysklar

RP2350 boards can send sound with the DVI picture, so a TV or monitor with speakers plays it. Proposal:

audio = picodvi.AudioOut(fb)  # fb is a picodvi.Framebuffer
audio.play(sample, loop=False)

Same methods and properties as audiobusio.I2SOut.

Question Proposed answer
New class or Framebuffer method? New class, so any audiocore sample just works
Sample rates 48 kHz only. Other rates raise ValueError
Which modes 640-wide only; the 720 mode's sync is too short
Cost when unused None on the cable, about 6 KB flash, flag to turn it off
Cost when used About 120-150 KB internal RAM, about 19% CPU while playing

Working branch, tested on Fruit Jam: https://github.com/mikeysklar/circuitpython/tree/picodvi-audioout

Is this shape OK?

Initial work by Phillip Torrone. Claude Code helped write this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions