 
   //sets interrupt to check for button talk abutton press
   attachInterrupt(digitalPinToInterrupt(talkButton), talk, RISING);
-  attachInterrupt(digitalPinToInterrupt(callButton), call, RISING);
   
   //sets the default state for each module to recevie
   rfAudio.receive();

}


void call()
{
  
  if (digitalRead(talkButton)) rfAudio.transmit();
  else rfAudio.receive();
}


void loop()
{
}

RF24Audio rfAudio(radio,0); // Set up the audio using the radio, and set to radio number 0

const uint8_t talkButton = 3;




int messageLength = 12;
int msg[1];
const uint64_t pipe = 0xE8E8F0F0E1LL;
int lastmsg = 1;
//String theMessage = "";
char theChar = 0;



const uint8_t call = 5;

void setup()
{      
  Serial.begin(115200);

  pinMode(call, INPUT);
  //digitalWrite(LED, LOW);
  
  printf_begin();
  radio.begin();
