   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.
+  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

#include <RF24.h>
#include <SPI.h>
#include <RF24Audio.h>
#include "printf.h"    // General includes for radio and audio lib
#include <MusicPlayer.h>

RF24 radio(7,8);    // Set radio up using pins 7 (CE) 8 (CS)
RF24Audio rfAudio(radio,0); // Set up the audio using the radio, and set to radio number 0

const uint8_t callDetector = 3;
const uint16_t callThreshold = 20; //20% duty cycle?
//
//
//int melody[] = { E6,E6,D6,E6,G6,E6  };
int melody[] = { E7,E7,D7,E7,G7,E7 };

//unsigned int duration[] = { E, E, E, E, E, E  };
unsigned int duration[] = { E, E, S, E, E, E  };
//unsigned int duration[] = { S, S, S, S, S, S };

int melodyPin = 5;
int melodyLength = 6;

MusicPlayer myPlayer = MusicPlayer(melodyPin);


void setup() {      

/*
  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 (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"
