00:56:16 @ikeji@ostatus.ikeji.ma
12:21:13 @ikeji@ostatus.ikeji.ma
icon

RP2040上のMicroPythonは、Threadを1つだけ(メインスレッド以外にもう1つだけ)作れて、作るとcore1で動くらしい。
https://github.com/micropython/micropython/blob/master/ports/rp2/mpthreadport.c#L125

Web site image
micropython/ports/rp2/mpthreadport.c at master ?? micropython/micropython
12:36:01 @ikeji@ostatus.ikeji.ma
icon

MicroPythonでTimerにコールバックを渡すと、それが割り込みベクタに登録されるらしい。割り込みベクタから呼ばれたコードでは、メモリ確保(とGC)ができないらしく、うっかりメモリ確保すると例外を出したいが例外がオブジェクトだと大変。

13:06:29 @ikeji@ostatus.ikeji.ma
icon

バクラヴァ

Attach image
17:45:36 @ikeji@ostatus.ikeji.ma
icon

MicroPython on microcontrollers — MicroPython latest documentation
https://docs.micropython.org/en/latest/reference/constrained.html

MicroPython on microcontrollers — MicroPython latest documentation