Updated FAQ #3 (markdown)

Michael Miller
2019-02-08 12:00:50 -08:00
parent 5d12bddd58
commit 5893db236f

@@ -41,7 +41,7 @@ void setup() {
void PixelCountChanged(uint16_t newCount) {
if (strip != NULL) {
delete Strip; // delete the previous dynamically created strip
delete strip; // delete the previous dynamically created strip
}
strip = new NeoPixelBus<NeoGrbFeature, Neo800KbpsMethod>(newCount, Pin); // and recreate with new count
strip->Begin();
@@ -52,7 +52,7 @@ void loop() {
if (strip != NULL) {
// some arbitrary code
for (uint16_t pixel = 0; pixel < strip.PixelCount(); pixel++) {
strip.SetPixelColor(pixel, red);
strip->SetPixelColor(pixel, red);
}
strip->Show();
}