Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
加载模块时from machine 和 from pyb 有什么区别?
machine和pyb这两个作用差不多,这是个历史问题。
pyb是pyboard的意思,最开始micropython主要支持的是stm32,开发板是pyboard。后来又添加了很多芯片支持,esp,samd,nrf都有,于是就想用一个统一的库machine覆盖所有芯片。
https://forum.micropython.org/viewtopic.php?t=5459