tda.setMix_Gain_Eff(1,0,0,0,0); // не используется
вот эта функция
void TDA7419::setMix_Gain_Eff(int mix_l, int mix_r, int mix_en, int sub_en, int gain_eff){
switch (mix_l) {
case 0: mix_l = 0b00000000;break;
case 1: mix_l = 0b00000001;break;
}
switch (mix_r) {
case 0: mix_r = 0b00000000;break;
case 1: mix_r = 0b00000010;break;
}
switch (mix_en) {
case 0: mix_en = 0b00000000;break;
case 1: mix_en = 0b00000100;break;
}
switch (sub_en) {
case 0: sub_en = 0b00000000;break;
case 1: sub_en = 0b00001000;break;
}
switch (gain_eff) {
case 0: gain_eff = 0b11000000;break;
case 1: gain_eff = 0b00000000;break;
case 2: gain_eff = 0b00010000;break;
case 3: gain_eff = 0b00100000;break;
case 4: gain_eff = 0b00110000;break;
case 5: gain_eff = 0b01000000;break;
case 6: gain_eff = 0b01010000;break;
case 7: gain_eff = 0b01100000;break;
case 8: gain_eff = 0b01110000;break;
case 9: gain_eff = 0b10000000;break;
case 10: gain_eff = 0b10010000;break;
}
int mix_sum = mix_l + mix_r + mix_en + sub_en + gain_eff;
writeWire(TDA7419_MIX_G_EFF, mix_sum);
}
можете менять последний параметр от 0 до 10