Coder Social home page Coder Social logo

micropython's Introduction

MicroPython

中文页 | English

1. Introduction

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.

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.

1.1 Directory structure

Name Description
docs Document directory, including getting started guide and development manual
drivers MicroPython source code directory
extmod MicroPython Source Code Directory
lib MicroPython source code directory
py MicroPython source code directory
port Porting code directory
LICENSE Micropython MIT License

1.2 License

RT-Thread MicroPython follows the MIT license, see the LICENSE file for details.

1.3 Dependency

  • RT-Thread 3.0+

2. How to open RT-Thread MicroPython

To use MicroPython package, you need to select it in the RT-Thread package manager. The specific path is as follows:

elect_micropytho

Then let the RT-Thread package manager automatically update, or use the pkgs --update command to update the package to the BSP.

3. Use RT-Thread MicroPython

3.1 Add software package to project

After selecting MicroPython package, when compiling with bsp again, it will be added to the bsp project for compilation.

3.2 Using MicroPython IDE

RT-Thread MicroPython IDE provides a powerful development environment for MicroPython, which can be directly searched and downloaded through the VScode application store. Examples are as follows:

08_direct_run_files

3.3 Add C extension to MicroPython

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 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.

08_direct_run_files

4. Matters needing attention

  • Need to use RT-Thread 3.0 or above
  • Select the latest version of Micropython in the menuconfig option
  • Currently, the ffi module under System Module only supports GCC toolchain, and relevant information needs to be added to the link script

5. Development resources

micropython's People

Contributors

summergift avatar armink avatar lawlieta avatar heyuanjie87 avatar bj-wanghz avatar enkiller avatar michael0066 avatar supperthomas avatar yanshanqingyuan avatar mysterywolf avatar lymzzyh avatar bernardxiong avatar yangjie11 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.