default volume preset

This commit is contained in:
Dooho Yi 2022-05-26 14:35:49 +09:00
parent 53ad1c9504
commit bf06a72aa1
3 changed files with 10 additions and 5 deletions

View file

@ -349,8 +349,10 @@ void setup() {
mixer2.gain(1,1.0);
mixer2.gain(2,0);
mixer2.gain(3,0);
amp1.gain(GAIN_FACTOR);
amp2.gain(GAIN_FACTOR);
// amp1.gain(GAIN_FACTOR);
// amp2.gain(GAIN_FACTOR);
amp1.gain(33.0/127.0); //default volume preset
amp2.gain(33.0/127.0); //default volume preset
//let auto-poweroff speakers stay turned ON!
sine1.frequency(IDLE_FREQ);

View file

@ -16,7 +16,7 @@
//============<identities>============
//
#define MY_GROUP_ID (10000)
#define MY_ID (MY_GROUP_ID + 15)
#define MY_ID (MY_GROUP_ID + 7)
#define MY_SIGN ("AUDIOOOO")
#define ADDRESSBOOK_TITLE ("broadcast only")
//
@ -495,7 +495,9 @@ void setup() {
//audio(I2S)
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume(21); // 0...21
// audio.setVolume(21); // 0...21
audio.setVolume(11.57); // 70 * 21 / 127 == 11.57
// audio.connecttoFS(SD, filename.c_str());
//info

View file

@ -670,7 +670,8 @@ void setup() {
//audio(I2S)
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume(21); // 0...21
// audio.setVolume(21); // 0...21
audio.setVolume(14.88); // 90 * 21 / 127 == 14.88
// audio.connecttoFS(SD, filename.c_str());
//info