I currently have a for
loop that loops 300 times and then moves on.
Instead, I'd like that loop to run for a specific number of minutes, instead.
Here's the current loop, for reference.
for(int i = 1; i<300; i++){
if (kill() == true){ break; }
strip.setPixelColor(1, strip.Color(random(100,255),random(100,255),random(100,255)));
strip.show();
tone(TONE, notes[random(0,3)]);
delay(100);
}
Also, I have an RTC that's used elsewhere in the app, so real actual time is available for use if it makes sense to do that...though I'd love to know of a way to do it without an RTC module for future projects.