Go Down

Topic: tda7439 set to mute (Read 391 times) previous topic - next topic

trean27

Jan 17, 2015, 04:47 pm Last Edit: Jan 17, 2015, 04:49 pm by trean27
HI,
I need to fix this code but dont, know how, got some help but it was for atmel8,
Im using nano 328 and need to get this compiled.

found this under, and cant put a 0 at
 equ.spkAtt(configuration.attLevel);  cant put value there..
it comes.

 error: no matching function for call to 'TDA7439::spkAtt(int&, int)'

but its semms to be something with mute and att....

best regards
Niklas.


Code: [Select]


EEPROM_readAnything(0, configuration);

   if (configuration.activeInput == 255) configuration.activeInput = 0;
   if (configuration.volumeLevel == 255) configuration.volumeLevel = 32;
   if (configuration.bassLevel == 255) configuration.bassLevel = 0;
   if (configuration.midLevel == 255) configuration.midLevel = 0;
   if (configuration.trebLevel == 255) configuration.trebLevel = 0;
   if (configuration.attLevel == 255) configuration.attLevel = 0;
   if (configuration.gainLevel == 255) configuration.gainLevel = 1;
   if (configuration.frequency < 88) configuration.frequency = 88;

   equ.setInput(configuration.activeInput+1);
   equ.inputGain(configuration.gainLevel,1);
   equ.setVolume(configuration.volumeLevel);
   equ.setSnd(configuration.bassLevel,1);
   equ.setSnd(configuration.midLevel,2);
   equ.setSnd(configuration.trebLevel,3);
   equ.spkAtt(configuration.attLevel);              //cant put 0 here.... !!?


  powerStateChanged = 0;
      lcd.clear();
      analogWrite(backlight, 200);
      digitalWrite(offPowerLED, HIGH);
      digitalWrite(onPowerLED, LOW);
      lcd.setCursor(0,0);
      lcd.print("Arduino Powered");
      lcd.setCursor(0,1);
      lcd.print("   Gainclone   ");
      delay(2000);
      lcd.clear();
      digitalWrite(powerRelay, 1);
      digitalWrite(fan, 1);
      equ.setInput(configuration.activeInput+1);
      equ.inputGain(configuration.gainLevel);
      equ.setVolume(configuration.volumeLevel);
      equ.setSnd(configuration.bassLevel,1);
      equ.setSnd(configuration.midLevel,2);
      equ.setSnd(configuration.trebLevel,3);
      equ.spkAtt(configuration.attLevel);                   // no 0 here either.... !!
      if (configuration.activeInput == 0) {
        radio_on();


i hope i will find out one day.


Go Up