An Arduino NeoPixel support library supporting a large variety of individually addressable LEDs. Please refer to the Wiki for more details. Please use the GitHub Discussions to ask questions as the GitHub Issues feature is used for bug tracking.
In GC11+ this is not specifically supported even though it has been around for a while and does seem to work.
If a user supplies a large rotationCount, then the stack will get blown out.
To Reproduce
Steps to reproduce the behavior:
Build NeoPixelTest example using warnings with NRF52x (Nano BLE 33)
See warning/error
Expected behavior
No Warning/No Error
Note, using alloca is considered the standard solution; but this could blow the stack out if the user has a large collection of pixels.
Rework code as it really only needs ONE pixel to store the single one while the copy happens.
Describe the bug In NeoPixelBus::_rotateRight and _rotateLeft, it uses a variable length array like
In GC11+ this is not specifically supported even though it has been around for a while and does seem to work.
If a user supplies a large rotationCount, then the stack will get blown out.
To Reproduce Steps to reproduce the behavior:
Expected behavior No Warning/No Error Note, using alloca is considered the standard solution; but this could blow the stack out if the user has a large collection of pixels. Rework code as it really only needs ONE pixel to store the single one while the copy happens.