Ending a For Loop(s)

That's a great idea which I wouldnt have never thought of even though it's kind of right in front of me.

For now that works but the plan was eventually to have something like:

  1. 4 x RFID tags placed in correct locations
  2. Neopixel lights count all the way up and all the way back down again
  3. Mag lock unlocks (yes I work in an escape room :stuck_out_tongue: )

To break the loop I tried something like this:

void loop() {
   for(int i;i<60;i++) {
if (i<59) {
break;
    strip.setPixelColor(i,150,0,0);
    strip.show();
    delay(10);
    }
   for(int i=60; i >= 0;i--){
   strip.setPixelColor(i,0,0,120);
   strip.show();
   delay(10);
   }}}

But that didn't work.
Many thanks for any help
Ben