 uint8_t left_ear = 2;
 uint8_t right_ear = 3;
 
-int hug_flag = 0;
 int kissed_flag = 0;
-int test_flag = 0;
-
 int normal_light_flag = 0;
 
 int photocellPin = 0;     // the cell and 10K pulldown are connected to a0

// blocking out ideas and code that needs to be written

// wiggle ears and play sound when button in hand (foot?) is pressed:
//     detect button click (debounce?)
//     signal for servos in ears to oscillate
//     oscillate for three(?) cycles

// accelerometer(?): when picked up (how to detect just being picked up? change in only y-axis?)
//     have bear say hello (or whatever)
//     wiggle ears?

// ****************************
// **** TEMPERATURE SENSOR ****
// ****************************
// hug when kissed or hugged
//     Detect change in relative temperature
//     Wiggle ears.
// NOTE: I fear that this isn't going to work. We're going to probably have to use an IR proximity sensor.






/*************************************************** 
 * This is an example for our Adafruit 16-channel PWM & Servo driver
 * Servo test - this will drive 16 servos, one after the other
 * 
 * Pick one up today in the adafruit shop!
 * ------> http://www.adafruit.com/products/815
 * 
 * These displays use I2C to communicate, 2 pins are required to  
 * interface. For Arduino UNOs, thats SCL -> Analog 5, SDA -> Analog 4
 * 
 * Adafruit invests time and resources providing this open source code, 
 * please support Adafruit and open-source hardware by purchasing 
 * products from Adafruit!
 * 
 * Written by Limor Fried/Ladyada for Adafruit Industries.  
 * BSD license, all text above must be included in any redistribution
 ****************************************************/

#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>


  pwm.setPWM(left_arm, 0, LEFT_ARM_OPEN);
  delay(500);
}

void reset_arms()
{
  // Sets left_arm and right_arm at their min and max values.
  pwm.setPWM(left_arm, 0, LEFT_ARM_OPEN);
  pwm.setPWM(right_arm, 0, RIGHT_ARM_OPEN);
}

void reset_ears()
{
  // Sets left_ear and right_ear at the middle.
  pwm.setPWM(left_ear, 0, MIDDLE_EAR);
  pwm.setPWM(right_ear, 0, MIDDLE_EAR);
}
