You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a port of `MicroPython` on RT-Thread, which can run on **RT-Thread 3.0** or higher. This software package can run `MicroPython` on embedded systems equipped with RT-Thread.
8
8
9
-
### 1.1 目录结构
9
+
If it is the first time to come into contact with RT-Thread MicroPython, it is recommended that you use RT-Thread officially supported development boards to get started quickly. These development boards have complete firmware functions and provide source code, suitable for introductory learning, and officially support development boards [firmware download Please click on me](https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=12305&extra=page%3D1%26filter%3Dtypeid%26typeid%3D20).
10
10
11
-
| 名称 | 说明 |
11
+
### 1.1 Directory structure
12
+
13
+
| Name | Description |
12
14
| ---- | ---- |
13
-
| docs | 文档目录,包括入门指南和开发手册|
14
-
| drivers | MicroPython 源代码目录|
15
-
| extmod | MicroPython 源代码目录|
16
-
| lib | MicroPython 源代码目录|
17
-
| py | MicroPython 源代码目录|
18
-
| port |移植代码目录|
19
-
| LICENSE | Micropython MIT 许可证|
15
+
| docs | Document directory, including getting started guide and development manual|
16
+
| drivers | MicroPython source code directory|
17
+
| extmod | MicroPython Source Code Directory|
18
+
| lib | MicroPython source code directory|
19
+
| py | MicroPython source code directory|
20
+
| port |Porting code directory|
21
+
| LICENSE | Micropython MIT License|
20
22
21
-
### 1.2 许可证
23
+
### 1.2 License
22
24
23
-
RT-Thread MicroPython 遵循 MIT 许可,详见 `LICENSE`文件。
25
+
RT-Thread MicroPython follows the MIT license, see the `LICENSE`file for details.
[RT-Thread MicroPython IDE](https://marketplace.visualstudio.com/items?itemName=RT-Thread.rt-thread-micropython)provides a powerful development environment for MicroPython, which can be directly searched and downloaded through the VScode application store. Examples are as follows:
为了方便用户添加自己编写的 C 函数到 MicroPython 中被 Python 脚本调用,RT-Thread 提供了[MicroPython C 绑定代码自动生成器](https://summerlife.github.io/RT-MicroPython-Generator/)供大家使用。通过该工具,用户只需要简单几步,即可实现 C 函数扩展,下图展示了自动生成的 C 代码的形式。
59
+
In order to facilitate users to add their own C functions to MicroPython to be called by Python scripts, RT-Thread provides[MicroPython C binding code automatic generator](https://summerlife.github.io/RT-MicroPython-Generator/)For everyone to use. With this tool, users only need a few simple steps to achieve C function extension. The following figure shows the form of the automatically generated C code.
为了方便用户添加自己编写的 C 函数到 MicroPython 中被 Python 脚本调用,RT-Thread 提供了 [MicroPython C 绑定代码自动生成器](https://summerlife.github.io/RT-MicroPython-Generator/) 供大家使用。通过该工具,用户只需要简单几步,即可实现 C 函数扩展,下图展示了自动生成的 C 代码的形式。
Takes a [`stream`](http://docs.micropython.org/en/latest/reference/glossary.html#term-stream)*sock* (usually usocket.socket instance of `SOCK_STREAM` type), and returns an instance of ssl.SSLSocket, which wraps the underlying stream in an SSL context. Returned object has the usual [`stream`](http://docs.micropython.org/en/latest/reference/glossary.html#term-stream) interface methods like `read()`, `write()`, etc. In MicroPython, the returned object does not expose socket interface and methods like `recv()`, `send()`. In particular, a server-side SSL socket should be created from a normal socket returned from[`accept()`](http://docs.micropython.org/en/latest/library/usocket.html#usocket.socket.accept) on a non-SSL listening server socket. Depending on the underlying module implementation in a particular [`MicroPython port`](http://docs.micropython.org/en/latest/reference/glossary.html#term-micropython-port), some or all keyword arguments above may be not supported.
0 commit comments