Problems in my code!!

Attached is the program that I am trying to work with! This is a code created by an Instructables Member. Unfortunately, the code is not uploading to the Arduino. I am needing help removing the IR Sensor code and bluetooth module. I am not using these components but I cannot figure out how to remove and make it work. Please help!!

Attached are both codes, the original and the one I tried editing.

I am using Mac Arduino 1.6.1.

Infinity_Mirror_Original_WithIR.ino (10.7 KB)

Infinity_Mirror_Edited_No_IR.ino (8.73 KB)

The only hard part is deciding what you want to do here:

  if(readIR(10) > 50){            // Switch off LEDs if someone is near the mirror - so that it can be used as a mirror. Switch off LEDs between 12:00 and 6:00 to save energy and cool down the LEDs and power supplies
    for (int i = 0; i < NUM_LEDS; i++) {
      leds[i] = CRGB::Black;
    ledState = 1;
  else {

I think your main problem is removing half of an IF statement and getting errors with the remaining parts. It is easier to just change “readIR(10) > 50” to “false”. If that doesn’t produce the effect you want, try “true”. After you take care of that you can easily remove the rest of the IR proximity detection code.