Timeline for Receive socket when in loop arduino (Interupt a while loop with a socket)
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 2, 2020 at 17:46 | comment | added | Delta_G | You'll also have to ditch the delay calls and go to a "Blink Without Delay" style use of millis if you really want to be responsive to your socket. Those for loops are also blocking, you could have that code take one step at a time and wait to be called from loop to take the next step. Google around for Arduino neopixel and non-blocking. You aren't the first person to realize that the demo stuff for neopixels doesn't work out in larger programs. It's not hack-and-paste code, it's just for demo. | |
May 2, 2020 at 17:43 | history | answered | Delta_G | CC BY-SA 4.0 |