   // 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

  int vsolPin = 29;
  int led_state = 1;
  
  #define ADCREFVOLTAGE 3.3
  #define NODE_ID 300
//

//// globals spells


    if(note_duration==4)
    {
    sprintf(sbuf, "note=%d volume=%d", note, (int)volume);
    Serial.println(sbuf);
    chibiTx(BROADCAST_ADDR, (unsigned char*)(&sbuf), strlen(sbuf)+1);

      
      cur_sequence[seq_index]=current_note;
      /*if((abs(cur_sequence[(10+seq_index-4)%10]-23)<=1) &&
         (abs(cur_sequence[(10+seq_index-3)%10]-25)<=1) &&
