Results 396 comments of Robert Lipe

@teknynja , good thinking, but neither of the provided examples allocate the buffer on the stack. The first has it as a global in .data. The second has it allocated...

Ah. That code wasn't in the original post. Yes, that code is being silly. That's very much going to blow up in a typical FreeRTOS (or most other multitasking) kind...

I like this a lot. There's a race. Condition at 51. Multiple threads could both enter and both find the muted null and bith create them and the operate with...

Right, you'll have an allocated an unreachable object and never have a way to release it. That's not totally terrible. but we can do better. We need something that acts...

Good grief. It's c++ (I see an operator new) but it doesn't allow C++. The main neopixel.cpp has a cpp extension and is definitely c++...but is about half asm(). And...

I think that's exactly the needed solution. Global Constructors are called before (the equivalent of) main() - so inside a ctor, we know we're single threaded. Having the NeoPixel ctor...

Nice writeup. A couple of us are kibitzing on this issue. Unfortunately, we can't seem to attract the attention of anyone capable/interested in offering feedback and/or pressing the 'merge' button....

+1. I may have no credibility here yet, but I have some. I reviewed and coached this PR (the coaching was in the other, bit the result is here) and...

For future generations reading this on archivedotorg... Please remember that 281xs are write-only and there's no ack. You don't NEED a thousand LEDs, power supplies and all that to TEST...

Building and not crashing would put it in the top quartile of blinky projects. (I mean, we're having this discussion because it did...) The ESP32-ish blinky ecosystem right now is...