 void setup() {
   Serial.begin(115200); // use the serial port
   Serial.println("starting");
+  
  // ADC configuration
  // set prescale to 16
  sbi(ADCSRA,ADPS2) ;

           else
             pin13_state=LOW;
           digitalWrite(13, pin13_state);
          }
          if(spell==1)
          {


 make_spell(0, "Red Led", "CDEC");
 make_spell(1, "Green Led", "FGFG");


  //// Initialize radio
  // set up high gain mode pin
  pinMode(hgmPin, OUTPUT);
  digitalWrite(hgmPin, LOW);
  // set up battery monitoring
  pinMode(vbatPin, INPUT);
  // set up LED
  pinMode(ledPin, OUTPUT);
  digitalWrite(ledPin, LOW);
  // Initialize the chibi command line and set the speed to 57600 bps
  chibiCmdInit(115200);
  // Initialize the chibi wireless stack
  chibiInit();
  // high gain mode
  digitalWrite(hgmPin, HIGH);
 
 Serial.println("setup done");
}

void detect_note(float& note, float& volume)
{
