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.
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;
}
FastLED.show();
ledState = 1;
//FastLED.delay(200);
}
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.