I've extended the code so far that the whole strip is filled.
Is that correct and can not be presented more easily?
for (int p = 0; p < 6; p++)
{
strip.setPixelColor(p, 0, 0, 0, 255);
}
for (int p = 6; p < 12; p++)
{
strip.setPixelColor(p, 255, 0, 0, 0);
}
for (int p = 12; p < 18; p++)
{
strip.setPixelColor(p, 0, 0, 0, 255);
}
for (int p = 18; p < 24; p++)
{
strip.setPixelColor(p, 0, 0, 255, 0);
}
for (int p = 24; p < 30; p++)
{
strip.setPixelColor(p, 0, 0, 0, 255);
}
for (int p = 30; p < 36; p++)
{
strip.setPixelColor(p, 255, 0, 0, 0);
}
for (int p = 36; p < 42; p++)
{
strip.setPixelColor(p, 0, 0, 0, 255);
}
for (int p = 42; p < 48; p++)
{
strip.setPixelColor(p, 0, 0, 255, 0);
}
for (int p = 48; p < 54; p++)
{
strip.setPixelColor(p, 0, 0, 0, 255);
}
for (int p = 54; p < 60; p++)
{
strip.setPixelColor(p, 255, 0, 0, 0);
}
However, I have no idea how I get the pattern to move, that it goes through, in LED 59 out and LED 0 back in. Alternatively, I would also be interested in not exchanging the single LED color, but the array of 6 neighboring LEDs.
Would be nice if someone can help me, so I get the movement there still.