Skip to content

Commit

Permalink
Update README.adoc
Browse files Browse the repository at this point in the history
added digital potentiometer control functions for amplifier volume
  • Loading branch information
D34G authored Mar 31, 2021
1 parent b728de6 commit d807ca4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ Compatible with Atmel SAMD series MCU and is best used with DAC related amplifie
// change the state of the shutdown pin of an amplifier while setting mute flag

void selectDACPin(uint8_t audioOutputPin);
// select the audio output pin on the microcontroller
// select the audio output pin on the microcontroller4

void selectDigitalPotPin(uint8_t DigitalPotPin);
// select the digital potentiometer pin on the microcontroller

setBlocking(bool blockFlag);
// enable or disable blocking mode to prevent code execution play() until audio track finishes, disabled by default

Expand Down Expand Up @@ -46,6 +49,15 @@ Compatible with Atmel SAMD series MCU and is best used with DAC related amplifie

void gainDown();
// increase volume (shouldn't need if using hardware gain control)

void setVolume(uint8_t v);
// move the wiper of the digital potentiometer to the selected value from 0 to 100 (scaled to 0-255)

void volumeUp();
// decrement the wiper of the digital potentiometer by one

void volumeDown();
// increment the wiper of the digital potentiometer by one

void end();
// called to manually stop the audio player
Expand Down

0 comments on commit d807ca4

Please sign in to comment.