 /*
-  FILENAME:   walkie talkie basic.ino
-  AUTHOR:     Orlando S. Hoilett
-  CONTACT:    orlandohoilett@gmail.com
-  VERSION:    0.0.0
-  WEBSITE:    http://www.instructables.com/member/ohoilett/
+  FILENAME:       WalkieTalkie.ino
+  AUTHOR:         Orlando S. Hoilett
+  CONTACT:        orlandohoilett@gmail.com
+  VERSION:        2.0
+  
+  
+  INSTRUCTABLE:   http://www.instructables.com/member/ohoilett/
+  GITHUB:         https://github.com/hoilett/Arduino-Walkie-Talkie-Instructable.git
+  HACKADAY:       https://hackaday.io/project/8598-wristwatch-walkie-talkie
   
   
   AFFILIATIONS:
   Institute for Innovation, Creative Exploration, and Personal
-      Development, West Lafayette, IN
+      Development (IICEPD), West Lafayette, IN
   Calvary Engineering, USA
       A group electronics enthusiasts 
       "let's have a little fun, and save teh world while we are at it"


  pinMode(callDetector, INPUT);

  //sets interrupt to check for call button
  //attachInterrupt(digitalPinToInterrupt(callDetector), sample, RISING);
  
  //sets the default state for each module to recevie
  rfAudio.receive();
}


//horrible way to use interrupts :)
void sample()
{
  unsigned long time0 = micros();
  unsigned long i = 0;

  while((micros() - time0) < 2000) //2 milliseconds
  {
    if (digitalRead(callDetector)) i++;
    delayMicroseconds(20);
  }

  if (i > callThreshold) myPlayer.playMelody(melody, duration, melodyLength);
  delay(200);
}


void loop()
{
  if(digitalRead(callDetector)) sample();
}

  Version 0.0.0
  2015/11/23:2100>
            Instructables release version.
  Version 2.0
  2016/05/30:2322>
            Includes buzzer for playing Mighty Morphin Power Rangers
            Communicator notification when called.


  DESCRIPTION
  Simple example for creating a walkie talkie by sending audio
  using the nRF24L01 RF transceiver module. Also uses a call
  button which plays the Mighty Morphin Power Rangers Communicator
  notification when pressed for under a specified amount of time.
  Otherwise, audio is transmitted when Analog In 0 goes LOW. This
  is handled by the rfAudio library.

  
  DISCLAIMER
