导入模块时,MicroPython将代码编译为字节码,然后由MicroPython虚拟机(VM)执行字节码。字节码存储在RAM中。编译器本身需要RAM,但其在编译完成后才可用。 若已导入多个模块,则在没有足够的RAM来运行编译器时,会出现这种情况。在这种情况下,导入语句将引发 ...
MicroPython是Python 3的精简和高效的实现,包含了一部分经过优化的Python标准库,能在微控制器等资源受限的平台运行。MicroPython也支持一些高级功能,比如交互式提示、任意精度的整数、闭包、列表推导、生成器、异常处理等等。它的实现体积很小,可以在只有 ...
Last time, I talked about how MicroPython is powerful and deserving of a place in your toolkit, and it made for a lively discussion. I’m glad to see that overall, MicroPython has indeed been getting ...
Both Arduino and MicroPython are giants when it comes to the electronics education area, and each one of them represents something you can’t pass up on as an educator. Arduino offers you a broad ...