Hey, looking @ your code right now.
If you want to delete the start_rainbow task, you're going to need to declare the led_strip outside of it and pass it to the task as an argument. I haven't really looked at any of the code logic, but if you want to dynamically create and delete the start_rainbow task without running into errors, I would do the following:
- Declare the LED strip in the http_server code. Take care of initialization in there.
- When you want to run the start_rainbow task, pass the pointer to the led strip to the start_rainbow task.
Then you should be able to dynamically delete the start_rainbow task without affecting the functionality of the LED strip.
Hey, looking @ your code right now.
If you want to delete the start_rainbow task, you're going to need to declare the led_strip outside of it and pass it to the task as an argument. I haven't really looked at any of the code logic, but if you want to dynamically create and delete the start_rainbow task without running into errors, I would do the following:
Then you should be able to dynamically delete the start_rainbow task without affecting the functionality of the LED strip.