Apart from the broken code indents, that article's one of the first I've seen that advocates using semaphores in _thread. The code I've seen that people have problems with generally create a thread and assume they can do things much in the same way a separate Linux process might do them. Since there's no memory protection or management apart from what you do yourself, things can fall apart quicklyNot that I doubt you but I found this article that seems to show _thread can be used under MicoPython https://www.theengineeringprojects.com/ ... ython.html. I admit, I haven't pull out a PICO to try it and simply pass it on for consideration.
Statistics: Posted by scruss — Sun Apr 28, 2024 10:36 pm