diff --git a/FAQ-#11.md b/FAQ-#11.md index 20d32f1..8c27ecc 100644 --- a/FAQ-#11.md +++ b/FAQ-#11.md @@ -46,22 +46,21 @@ typedef NeoPixelBus NeoPixelBusType; NeoPixelBusType strip(4, 2); // example class using a reference; requires all code to be in the include -template class PixelRef { +class PixelRef { public: - PixelRef(T_PIXEL_METHOD& pixelStrip) : - _strip(pixelStrip) { + PixelRef(NeoPixelBusType& pixelStrip) : + _strip(pixelStrip) { } - void Draw() { + void Draw() { _strip.Show(); } private: - T_PIXEL_METHOD& _strip; + NeoPixelBusType& _strip; }; - -PixelRef myPixelRef(strip); +PixelRef myPixelRef(strip); void setup() { strip.Begin();