MicroPython
getting-started
  • Getting Started
  • SymPy Module Reference
  • SymPy Tutorial
    • Getting Started
    • Extending MicroPython in C
      • MicroPython external C modules
      • MicroPython string interning
      • Native machine code in .mpy files
  • SymPy Special Topics
  • SymPy license information
  • SymPy Papers
  • About SymPy
  • SymPy Documentation Style Guide
  • Planet SymPy
  • Common PitFalls
MicroPython
  • Docs »
  • SymPy Tutorial »
  • Extending MicroPython in C
  • Edit on GitHub

Extending MicroPython in C¶

This chapter describes options for extending MicroPython in C. Note that it doesn’t aim to be a complete guide for developing with MicroPython. See the getting started guide for further information.

  • MicroPython external C modules
    • Structure of an external C module
    • Basic example
    • Compiling the cmodule into MicroPython
    • Module usage in MicroPython
  • MicroPython string interning
    • Compile-time QSTR generation
    • Run-time QSTR generation
  • Native machine code in .mpy files
    • Supported features and limitations
    • Defining a native module
    • Minimal example
    • Compiling the module
    • Module usage in MicroPython
    • Further examples
Next Previous

© Copyright 2014-2020, Damien P. George, Paul Sokolovsky, and contributors Revision bca63c6a.

Built with Sphinx using a theme provided by Read the Docs.