Quantcast
Viewing all articles
Browse latest Browse all 5127

MicroPython • Re: How can i run endless loop, and in the same time run the code after endless loop?

Not 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.
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 quickly

Statistics: Posted by scruss — Sun Apr 28, 2024 10:36 pm



Viewing all articles
Browse latest Browse all 5127

Trending Articles