Skip to content

TLV320_Tone_Arduino: add headphone support and Pico 2W hardware reset#3241

Merged
BlitzCityDIY merged 2 commits into
adafruit:mainfrom
mikeysklar:pico-tlv320-headphone-support-2
May 13, 2026
Merged

TLV320_Tone_Arduino: add headphone support and Pico 2W hardware reset#3241
BlitzCityDIY merged 2 commits into
adafruit:mainfrom
mikeysklar:pico-tlv320-headphone-support-2

Conversation

@mikeysklar
Copy link
Copy Markdown
Collaborator

@mikeysklar mikeysklar commented May 13, 2026

Adds headphone output support and Pico 2W (RP2350) compatibility to the TLV320 sine tone example.

Changes

  • Hardware reset on pin 7 (RST): Required for codec I2C init on RP2350. Without it, every codec call fails. Harmless on RP2040.
  • Headphone block: Five lines to route audio to headphones in addition to the speaker.

Tested on

  • Raspberry Pi Pico (RP2040) ✅
  • Raspberry Pi Pico 2W (RP2350) ✅
  • Adafruit Metro (RP2350) ✅

forum user confirmed working.

mikeysklar and others added 2 commits May 13, 2026 10:14
…are reset

- Add hardware reset on pin 7 (RST), required for RP2350 codec init, harmless on RP2040
- Add commented-out headphone output block for users without a speaker

Tested on Raspberry Pi Pico (RP2040) and Pico 2W (RP2350).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Enable headphone output with configureHPL/HPR_PGA (unmute required)
- Revert DAC volume section to stock (no functional change)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mikeysklar
Copy link
Copy Markdown
Collaborator Author

@BlitzCityDIY

Copy link
Copy Markdown
Collaborator

@BlitzCityDIY BlitzCityDIY left a comment

Choose a reason for hiding this comment

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

makes sense, thanks!

@BlitzCityDIY BlitzCityDIY merged commit 4622d61 into adafruit:main May 13, 2026
100 of 102 checks passed
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