MicroPython
gc
  • MicroPython libraries
  • MicroPython language and implementation
  • MicroPython Internals
    • Getting Started
    • The MicroPython Core Runtime
    • Extending MicroPython in C
      • MicroPython external C modules
      • MicroPython string interning
      • Native machine code in .mpy files
  • MicroPython Development Reference
  • MicroPython license information
  • Quick reference for the pyboard
  • Quick reference for the ESP8266
  • Quick reference for the ESP32
  • Quick reference for the WiPy
  • Quick reference for the UNIX and Windows ports
MicroPython
  • Docs »
  • MicroPython Internals »
  • 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 1ef25109.

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