能否将python库导入到microPython中?

2024-06-16 15:04:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经启动了一个项目,为了测试它是否有效,我使用了一个Pi零。它有按钮,然后将MIDI消息发送到我的电脑,具体取决于按下的按钮。因此,一个简单的MIDI控制器

现在我认为像Pico这样的微控制器更适合这样的任务,但它只能运行MicroPython

所以我的问题是,您是否可以将大部分或所有python库导入到microPython中,或者我是否应该使用另一个可以运行python的微控制器


Tags: 项目消息micropythonpi控制器按钮midi电脑
2条回答

So my question is, wether you can import most or all of the python libaries into microPython or if I should use another MicroController that can run python.

虽然MicroPython与Python(3.4)有很多相同的语法,但它的不同之处在于,除了最简单的Python代码之外,任何东西都不会在MicroPython下运行。通常,您应该只希望在支持MicroPython的设备上运行为MicroPython显式开发的代码

So my question is, wether you can import most or all of the python libaries into microPython or if I should use another MicroController that can run python.

我不相信有任何微控制器可以运行标准Python。你能找到的最小的设备可能是树莓皮零

通常是“不”,不合适

相关问题 更多 >