diff --git a/FAQ-#3.md b/FAQ-#3.md index c597aec..ba1f9f3 100644 --- a/FAQ-#3.md +++ b/FAQ-#3.md @@ -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(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(); }