From 5893db236f0facf6f527f3f653333c66e37cbd32 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Fri, 8 Feb 2019 12:00:50 -0800 Subject: [PATCH] Updated FAQ #3 (markdown) --- FAQ-#3.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }