Hallo,
nach längerer Suche und bevor ich es endgültig aufgebe eine Frage:
Trifft es zu das es nicht möglich ist mehrere LEDs auf einem Neopixel Streifen in einer einzelnen Zeile anzusteuern?
Also anstatt die Nummer des einzelnen Pixels eine ganze Gruppe zu definieren ?
z.B. "1-15" oder "3;6;12;" usw.?
Das bedeutet wenn ich komplexe Reihenfolgen von einzelnen Pixeln ansteuern will muss ich zwangsläufig riesige Blöcke an sich überflüssigen, weil ständig wiederholenden Code verwenden?
nein trifft nicht zu. Es ist möglich mehrere Pixel anzusprechen.
.fill() kannst du auch verwenden um eine bestimmte Anzahl von Pixel zu setzen:
strip.fill(color, first, count);
“color” is a packed 32-bit RGB (or RGBW) color value, as might be returned by strip.Color(). There is no option here for separate red, green and blue, so call the Color() function to pack these into one value.
“first” is the index of the first pixel to fill, where 0 is the first pixel in the strip, and strip.numPixels() - 1 is the last. Must be a positive value or 0.
“count” is the number of pixels to fill. Must be a positive value.
If called without a count argument (only color and first), this will from first to the end of the strip.
If called without first or count arguments (only color), the full strip will be set to the requested color.
If called with no arguments, the strip will be filled with black or “off,” but there’s also a different syntax which might be easier to read.
Vermutlich wirst Du eine Bibliothek verwenden, welche?
Dafür haben die Entwickler von C++ Sprachelemente entwickelt, die zu nutzen sich lohnt. Einige sind in #2 erwähnt, ich möchte noch Methoden ergänzen, da Du auch die Bibliothek Deiner Wahl entsprechend Deinen Wünschen erweitern kannst.
Mach mal ein einfaches Beispiel, was Du vor hast, dann kann man Dir konkret helfen.