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.
GNU Lesser General Public License v3.0
1.18k
stars
264
forks
source link
ESP32 I2S parallel channels - Compiler error because IsWriteDone() is not `const` ( NeoPixelBrightnessBus) #695
Hi,
I'm playing with the new I2S parallel mode, to see how it could be integrated into WLED.
I'm still on NeoPixelBrightnessBus and haven't changed to NeoPixelBusLg in my in-work version yet. So not sure if this problem happens with the depricated BrightnessBus only.
I'm running into a compile error, that seems to come because the IsWriteDone() method of NeoEsp32I2sXMethod is not const. Actually I can fix my build by adding const, however I'm not sure if this the right solution. Please advise.
Hi, I'm playing with the new I2S parallel mode, to see how it could be integrated into WLED.
I'm still on
NeoPixelBrightnessBus
and haven't changed to NeoPixelBusLg in my in-work version yet. So not sure if this problem happens with the depricated BrightnessBus only.I'm running into a compile error, that seems to come because the
IsWriteDone()
method of NeoEsp32I2sXMethod is notconst
. Actually I can fix my build by addingconst
, however I'm not sure if this the right solution. Please advise.https://github.com/Makuna/NeoPixelBus/blob/327b2d86d7902d7a73af24d1c6264028b495bcdb/src/internal/methods/NeoEsp32I2sXMethod.h#L472-L475
my humble workaround:
The code in WLED is a bit complicated, as we use
void*
to store arbitrary bus objects. Basically we do this:compile error:
Evironment: