Skip to content
forked from andykarpov/PT2314

Arduino library to control PT2314 AKA ET2314 audio processor

Notifications You must be signed in to change notification settings

tomica00/PT2314

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PT2314

Arduino library to control PT2314 AKA ET2314 audio processor

I made a few changes to andykarpov's PT2314 library, which is awesome BTW. andykarpov made a default gain of 11.25dB which made the sound on my speakers clipped and distorted, so I changed the default values and added the variable _gain and the method gain() with which you can set the desired gain from 0 to 3, which corresponds to 0dB, +3.75dB, +7.5dB and +11.25dB.

See examples folder!

Example usage:

PT2314 audioswitch;
setup() {
  Wire.begin();
  audioswitch.init();
  audioswitch.gain(1);  // +3.75dB gain
  audioswitch.channel(0); // 0-3 => channel 1-4
  audioswitch.volume(100); // default volume is 0, so you get nothing out of the output. 100 = full volume.
}

Useful snippets:

// FADE OUT
for (byte i=100; i>0; i=i-5) {
  audioswitch.volume(i);
  delay(20);
}

// FADE IN
for (byte i=0; i<=100; i=i+5) {
  audioswitch.volume(i);
  delay(20);
}

About

Arduino library to control PT2314 AKA ET2314 audio processor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%