mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 12:54:26 +02:00
Updated FAQ (markdown)
2
FAQ.md
2
FAQ.md
@@ -1,4 +1,4 @@
|
||||
## I wish to dynamically set the number pixels, other libraries expose a method to change the number of pixels like updateLength() or setPixelCount().
|
||||
### I wish to dynamically set the number pixels, other libraries expose a method to change the number of pixels like updateLength() or setPixelCount().
|
||||
The key word here is dynamic. The best practice when dealing with key feature change is to dynamical create the object and recreate it when things change. It will often lead to smaller program code size even though you may have to type more. See the following snippet of code as an example of how to do this.
|
||||
```
|
||||
// declare your object as dynamic, a pointer to it, the *
|
||||
|
Reference in New Issue
Block a user