跳到主要内容

MicroPython简介

MicroPython 的官方说明1

MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments.

MicroPython is packed full of advanced features such as an interactive prompt, arbitrary precision integers, closures, list comprehension, generators, exception handling and more. Yet it is compact enough to fit and run within just 256k of code space and 16k of RAM.

MicroPython aims to be as compatible with normal Python as possible to allow you to transfer code with ease from the desktop to a microcontroller or embedded system.

这段话翻译过来的意思是:

MicroPython 是 Python 3 编程语言的精简高效实现,其中包括 Python 标准库的一小部分,并且经过优化,可在微控制器和受限环境中运行。

MicroPython 支持很多高级功能,例如交互式提示、任意精度整数、闭包、列表、生成器、异常处理等等。并且它本身非常小巧:可以在 256k 的代码空间和 16k 的 RAM 内安装和运行。

MicroPython 在尽可能地与普通 Python 兼容,让用户可以轻松地将代码从PC传输到微控制器或嵌入式系统。

也就是说我们现在可以在单片机(微控制器)上使用MicroPython进行编程开发了。总所周知,python在pc上或者说在微处理器上使用起来非常简单方便,而MicroPython就是让python能运行在我们的单片机(微控制器)上,虽然现在不是100%和python一样,但是MicroPython正在努力地和python保持兼容。

MicroPython相关学习资料

对我们学习或者完成一些项目来说,使用 MicroPython 能快速实现我们的需求或者想法。同时,在我们学习的过程中,使用我们 资料包 中的资料已经足够你学习使用MicroPython,如果你想深入学习,可以根据这节的文档了解更多的内容。

DshanMCU-Mio(澪) 学习资料包下载地址:[https://forums.100ask.net/t/topic/1285#h-1]

MicroPython官方网站

MicroPython的官方网站 你可以在这里获得更多关于MicroPython方面的内容,或者获取最新的资讯。

MicroPython文档

在MicroPython的官方网站中提供了一个文档入口:

100ASK交流社区

遇到问题时可以在我们的交流社区 提问,会有专业的老师或者热心的同学一起帮你解决问题!

除了提问之外也可以浏览大家分享的各种创意项目,当然你也可以在这里留下你的成果展示分享给大家!

Footnotes

  1. https://micropython.org