encyclopegia.org

MicroPython

MicroPython is a software implementation of a programming language largely compatible with Python 3, written in C, that is optimized to run on a microcontroller. MicroPython consists of a Python compiler to bytecode and a runtime interpreter of that bytecode. The user is presented with an interactive prompt (the REPL) to execute supported commands immediately. Included are a selection of core Python libraries; MicroPython includes modules which give the programmer access to low-level hardware. MicroPython does have an inline assembler, which lets the code run at full speed, but it is not portable across different microcontrollers. The source code for the project is available on GitHub under the MIT License.

MicroPython is a software implementation of a programming language largely compatible with Python 3, written in C, that is optimized to run on a microcontroller. MicroPython consists of a Python compiler to bytecode and a runtime interpreter of that bytecode. The user is presented with an interactive prompt (the REPL) to execute supported commands immediately. Included are a selection of core Python libraries; MicroPython includes modules which give the programmer access to low-level hardware. MicroPython does have an inline assembler, which lets the code run at full speed, but it is not portable across different microcontrollers. The source code for the project is available on GitHub under the MIT License. Print to serial console print("Hello, World!") Importing + turning on a LED: import pyb Turn LED on pyb.LED(1).on() Reading a file + loop: import os Open and read a file with open("/readme.txt") as f: print(f.read()) GOTO 2016 • MicroPython & the Internet of Things • Damien George on YouTube • Tutorials by Tony DiCola / Adafruit

References

No reference rows published for this article.

Cite this article

MLA

"MicroPython." encyclopegia.org, 2026, https://encyclopegia.org/wiki/micropython. Accessed 24 November 2026.

Chicago

"MicroPython." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/micropython.

APA

encyclopegia.org. (2026). MicroPython. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/micropython

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1346930982 · 0.5 · snapshot enwiki-001346930982

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.