* Fix clang-tidy pointer cast error
clang-tidy reports:
./src/internal/NeoEsp8266DmaMethod.h:317:46: error: cast from pointer to smaller type 'uint32_t' (aka 'unsigned int') loses information [clang-diagnostic-error]
_i2sBufDesc[indexDesc].buf_ptr = reinterpret_cast<uint32_t>(is2Buffer);
^
./src/internal/NeoEsp8266DmaMethod.h:492:58: error: cast from pointer to smaller type 'uint32_t' (aka 'unsigned int') loses information [clang-diagnostic-error]
(finished_item + 1)->next_link_ptr = reinterpret_cast<uint32_t>(finished_item);
Use pointers instead of integers for pointers. This makes quite some
casts unnecessary.
* Use struct slc_queue_item* as datatype for next pointer
NeoPixelBus
Arduino NeoPixel library
A library to control one wire protocol RGB and RGBW leds like APA106, SK6812, WS2811, WS2812 and WS2813 that are commonly refered to as NeoPixels and two wire protocol RGB like Lpd8806, APA102 and SK9822 commonly refered to as DotStars. Supports most Arduino platforms.
Please read this best practices link before connecting your NeoPixels, it will save you a lot of time and effort.
Adafruit NeoPixel Best Practices
For quick questions and support:
- Try the new Github Discussions
- Discord NeoPixelBus Invitation or if you are already a member of Discord Server NeoPixelBus
- Or jump on Gitter
For bugs, make sure there isn't an active issue and then create one.
Why this library and not FastLED or some other library?
See Why this Library in the Wiki.
Documentation
Installing This Library (preferred, you just want to use it)
Open the Library Manager and search for "NeoPixelBus by Makuna" and install
Installing This Library From GitHub (advanced, you want to contribute)
Create a directory in your Arduino\Library folder named "NeoPixelBus"
Clone (Git) this project into that folder.
It should now show up in the import list when you restart Arduino IDE.