_thread is a source of much sadness for RP2040 MicroPython users. If you're used to using threads on CPython, it's easy to forget that you have the full weight of an operating system with memory management helping you out. _thread is bare metal on a Raspberry Pi Pico: you have to implement the locks, manage the memory, avoid contentions.
I'd recommend avoiding _thread for as long as you can.
You could probably achieve the same with Timers, though you can't really sleep for the full LED on time in an ISR.
I'd recommend avoiding _thread for as long as you can.
You could probably achieve the same with Timers, though you can't really sleep for the full LED on time in an ISR.
Statistics: Posted by scruss — Mon Jul 29, 2024 1:55 pm