-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WS2812B RGB LED with NeoPixelBus Animation now flickering #21
Comments
the async lib is connected directly to the network stack and it gets it's data through callbacks. I do not think that those callbacks are interrupt based or we would not have had the need to call yield. |
Thanks, good to know about stack. By the way not sure if it's related but now calling WifI.scanNetworks() returns 0, did you noticed that point ? (But I'm connecting to my AP without any problem)
Another question, from WebSocket handler, how to get the client IP from AsyncWebSocketClient * client ? |
yeah... need to add access to the client IP/Port... |
here is access to IP/Port |
maybe you should try Uart or DMA mode for the pixels, since they have buffers to smooth things out :) |
yeah, but with GPIO of my project I can't use DMA or Uart. |
yes, I suspect the animation is yielding somewhere and that switches the context and causes delay in between commands |
@me-no-dev Here my code for information
|
Hi @me-no-dev
I've just migrated my project to AsyncLib, all is working fine and it's fast. I've got one question, I had some WS2812B led breathing and it was working fine with the classic WebServer (no async) but with the async version, LED are flickering, of course I understand Async does job under the hood but is there any option to slow down this kind of network "loop task" ? I just would like testing to see if it's due to some timing problem since these LED are very stric on this point.
By the way since we do nothing in loop nor call to async, how the TCP stuff is handled (interrupts, timer, ...), just curious ?
The text was updated successfully, but these errors were encountered: