Skip to content

Commit 03850df

Browse files
mikeysklarclaude
andcommitted
TLV320_Tone_Arduino: uncomment headphone output, restore stock volume
- 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>
1 parent 0837f2d commit 03850df

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

TLV320DAC3100_Examples/TLV320_Tone_Arduino/TLV320_Tone_Arduino.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void setup() {
101101
!codec.setChannelVolume(true, 18)) { // Right DAC +0dB
102102
Serial.println("Failed to configure DAC volume control!");
103103
}
104-
104+
105105

106106
if (!codec.setChannelVolume(false, 12.0) ||
107107
!codec.setChannelVolume(true, 12.0)) {
@@ -115,12 +115,12 @@ void setup() {
115115
Serial.println("Failed to configure speaker output!");
116116
}
117117

118-
// Uncomment to use headphone output instead of (or in addition to) speaker
119-
// codec.configureHeadphoneDriver(true, true, TLV320_HP_COMMON_1_35V, false);
120-
// codec.setHPLVolume(true, 0);
121-
// codec.setHPRVolume(true, 0);
122-
// codec.configureHPL_PGA(9, true);
123-
// codec.configureHPR_PGA(9, true);
118+
// Headphone output
119+
codec.configureHeadphoneDriver(true, true, TLV320_HP_COMMON_1_35V, false);
120+
codec.setHPLVolume(true, 0);
121+
codec.setHPRVolume(true, 0);
122+
codec.configureHPL_PGA(9, true);
123+
codec.configureHPR_PGA(9, true);
124124

125125
// Initialize I2S peripheral
126126
Serial.println("Initializing I2S...");

0 commit comments

Comments
 (0)