I have tried a couple times to paste the entire code and even shorting it but I keep getting an error that it exceeds 9000 characters. Basically what I have is an LCD, Keypad and a string of 198 addressable LED lights that will light up when a number is entered into the keypad. Each if statement is a different route (set of lights) that the climber follows up the wall, this works great. What I want to do is find a way that a climber can set a memory button to light up the route he is working on versus having to remember to enter 1432# each time it is their turn. There are 1,500 IF statements that look just like this except each is a different set of lights. Only the lines within that IF statement are performed when a route is selected...around 10 lines of code. The only other part of the code that is not show is the LCD and Keypad section which is pretty standard and the same type of IF statements. Thank you for your help and suggestions on how to tackle this.
if (currentProblem[0] == '1' && currentProblem[1] == '5' && currentProblem[2] == '5' && currentProblem[3] == '9'){
colorWipe(strip.Color(0, 0, 0), 200);
strip.setPixelColor(c18, 0xFF0000); //Green - Finish
strip.setPixelColor(d16, 0x00FF00); //Red
strip.setPixelColor(f14, 0x00FF00); //Red
strip.setPixelColor(d11, 0x00FF00); //Red
strip.setPixelColor(f8, 0x00FF00); //Red
strip.setPixelColor(c4, 0x0000FF); //Blue - Start
lcd.setCursor(0,3);
lcd.print("6B Try a Bump ");
strip.show();
}
if (currentProblem[0] == '1' && currentProblem[1] == '5' && currentProblem[2] == '6' && currentProblem[3] == '0'){
colorWipe(strip.Color(0, 0, 0), 200);
strip.setPixelColor(g18, 0xFF0000); //Green - Finish
strip.setPixelColor(d16, 0x00FF00); //Red
strip.setPixelColor(e14, 0x00FF00); //Red
strip.setPixelColor(c11, 0x00FF00); //Red
strip.setPixelColor(g9, 0x00FF00); //Red
strip.setPixelColor(f7, 0x00FF00); //Red
strip.setPixelColor(h4, 0x0000FF); //Blue - Start
lcd.setCursor(0,3);
lcd.print("6A Jazavac ");
strip.show();
}
if (currentProblem[0] == '1' && currentProblem[1] == '5' && currentProblem[2] == '6' && currentProblem[3] == '1'){
colorWipe(strip.Color(0, 0, 0), 200);
strip.setPixelColor(h18, 0xFF0000); //Green - Finish
strip.setPixelColor(i15, 0x00FF00); //Red
strip.setPixelColor(d13, 0x00FF00); //Red
strip.setPixelColor(f10, 0x00FF00); //Red
strip.setPixelColor(g6, 0x00FF00); //Red
strip.setPixelColor(j4, 0x0000FF); //Blue - Start
lcd.setCursor(0,3);
lcd.print("7B Otpor pokretu ");
strip.show();
}
if (currentProblem[0] == '1' && currentProblem[1] == '5' && currentProblem[2] == '6' && currentProblem[3] == '2'){
colorWipe(strip.Color(0, 0, 0), 200);
strip.setPixelColor(g16, 0x00FF00); //Red
strip.setPixelColor(h14, 0x00FF00); //Red
strip.setPixelColor(c11, 0x00FF00); //Red
strip.setPixelColor(d10, 0x00FF00); //Red
lcd.setCursor(0,3);
lcd.print("6C+ Jedaj ");
strip.show();
}
if (currentProblem[0] == '1' && currentProblem[1] == '5' && currentProblem[2] == '6' && currentProblem[3] == '3'){
colorWipe(strip.Color(0, 0, 0), 200);
strip.setPixelColor(f14, 0x00FF00); //Red
strip.setPixelColor(f11, 0x00FF00); //Red
strip.setPixelColor(h9, 0x00FF00); //Red
strip.setPixelColor(c7, 0x00FF00); //Red
lcd.setCursor(0,3);
lcd.print("6A Simplex ");
strip.show();
}
if (currentProblem[0] == '1' && currentProblem[1] == '5' && currentProblem[2] == '6' && currentProblem[3] == '4'){
colorWipe(strip.Color(0, 0, 0), 200);
strip.setPixelColor(f18, 0xFF0000); //Green - Finish
strip.setPixelColor(f15, 0x00FF00); //Red
strip.setPixelColor(h12, 0x00FF00); //Red
strip.setPixelColor(e10, 0x00FF00); //Red
strip.setPixelColor(h8, 0x00FF00); //Red
strip.setPixelColor(c4, 0x0000FF); //Blue - Start
lcd.setCursor(0,3);
lcd.print("6A L8 ");
strip.show();
}
if (currentProblem[0] == '1' && currentProblem[1] == '5' && currentProblem[2] == '6' && currentProblem[3] == '5'){
colorWipe(strip.Color(0, 0, 0), 200);
strip.setPixelColor(g18, 0xFF0000); //Green - Finish
strip.setPixelColor(h14, 0x00FF00); //Red
strip.setPixelColor(g9, 0x00FF00); //Red
strip.setPixelColor(g7, 0x00FF00); //Red
lcd.setCursor(0,3);
lcd.print("6A+ Speedy Stana ");
strip.show();
}
if (currentProblem[0] == '1' && currentProblem[1] == '5' && currentProblem[2] == '6' && currentProblem[3] == '9'){
colorWipe(strip.Color(0, 0, 0), 200);
strip.setPixelColor(d18, 0xFF0000); //Green - Finish
strip.setPixelColor(c16, 0x00FF00); //Red
strip.setPixelColor(e15, 0x00FF00); //Red
strip.setPixelColor(c13, 0x00FF00); //Red
strip.setPixelColor(e10, 0x00FF00); //Red
strip.setPixelColor(b9, 0x00FF00); //Red
strip.setPixelColor(e7, 0x00FF00); //Red
strip.setPixelColor(d4, 0x0000FF); //Blue - Start
strip.setPixelColor(g3, 0x0000FF); //Blue - Start
lcd.setCursor(0,3);
lcd.print("6A Girls accomodation 1 ");
strip.show();
}