MicroPython: Difference between revisions

From Helpful
Jump to navigation Jump to search
(Created page with "<!-- MicroPython is primarily trying to expose a nice syntax. Implementation-wise: * python to bytecode (.mpy) * bytecode runtime * reduced standard library MicroPython...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:




MicroPython is primarily trying to expose a nice syntax.
MicroPython, like e.g. lua in nodemcu,
is primarily trying to expose a nicer syntax for chunkier-microcontroller style projects.
 
It's basically a reduced implementation that is largely compatible with py3,
and gives you
* a bytecode compiler
* a runtime interpreter of such bytecode
* an interactive prompt (on board e.g. exposed via serial)
* some of the standard library
* some specific low-level libraries
 
 
 
It uses on the order of
* 256k of code space and
* 16k of RAM
 
 
Mainline implementations exist for
* ARM Cortex-M (e.g. STM32 boards like Teensy, nRF series, SAMD21, SAMD51),
* ESP8266, ESP32,
* 16bit PIC
 
RP2040?
 
 
Forks exist for various other hardware
 
 


Implementation-wise:
Implementation-wise:
* python to bytecode (.mpy)
* python to bytecode (.mpy) compiler
* bytecode runtime
* bytecode runtime
* reduced standard library
* reduced standard library
 
* an interactive prompt




Line 15: Line 43:




CircuitPython is a fork of MicroPython,
designed to be a little easier, e.g. editing over USB, BLE
??
Circuitpython is also available as a library running on linux (e.g. under installed linux on Pi, rather than bare-bones)
??
https://micropython.org/


https://github.com/micropython/micropython
https://github.com/micropython/micropython


-->
-->

Latest revision as of 02:41, 28 August 2023