kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Because `mp_tracked_calloc` does not survive a soft reset but the memory region will, resulting in half-initialised frankenclasses that behave unpredictably. Using the class pattern fixes this since it's always guaranteed to be initialised when a user instantiates it, and __del__ can handle cleanup. |
||
|---|---|---|
| .. | ||
| demo.py | ||