This page (revision-15) was last changed on 2025-04-03 01:12 by Murray Altheim

This page was created on 2021-11-27 23:10 by Murray Altheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Version Date Modified Size Author Changes ... Change note
15 2025-04-03 01:12 4 KB Murray Altheim to previous
14 2025-04-02 23:22 4 KB Murray Altheim to previous | to last
13 2025-04-02 23:19 4 KB Murray Altheim to previous | to last
12 2025-04-02 23:18 4 KB Murray Altheim to previous | to last
11 2025-04-02 23:12 4 KB Murray Altheim to previous | to last
10 2025-04-02 23:02 3 KB Murray Altheim to previous | to last
9 2025-04-02 22:51 2 KB Murray Altheim to previous | to last
8 2025-04-02 22:42 2 KB Murray Altheim to previous | to last
7 2025-04-02 22:40 1 KB Murray Altheim to previous | to last
6 2025-04-02 22:38 1 KB Murray Altheim to previous | to last
5 2025-04-02 22:37 1 KB Murray Altheim to previous | to last
4 2025-04-02 22:28 1 KB Murray Altheim to previous | to last
3 2021-12-22 07:08 437 bytes Murray Altheim to previous | to last
2 2021-11-29 10:39 422 bytes Murray Altheim to previous | to last
1 2021-11-27 23:10 297 bytes Murray Altheim to last

Difference between version and

At line 1 changed one line
__[MicroPython]__ is a version of the [Python] programming language suitable for microcontrollers.
__[MicroPython]__ is a version of the [Python] programming language suitable for [microcontrollers].
At line 7 added 13 lines
!! Getting Started
__MicroPython__ is a version of the [Python] programming language designed for use on microcontrollers like the [ESP32], [STM32], [RP2040], etc. Installation instructions are available from the ''Quick Reference'' page for each microcontroller (sidebar links from the [Documentation|https://docs.micropython.org/en/latest/index.html] page), which is generally: downloading the distribution file and installing it over a USB connection.
Note that MicroPython on a microcontroller has what's effectively its own tiny file system (as a "[Pyboard]"), and there's not really much in the way of standardisation of how things are installed there. So if a library or function isn't defined in MicroPython itself (or, e.g., in Pimoroni's distribution of it), you can simply install the necessary files on your microcontroller, perhaps in its own or a 'lib' directory, and just be sure to manage your imports so your main.py can see the necessary files. It's not a lot more complicated than that.
I'd also recommend __[rshell|https://github.com/dhylands/rshell]__, which provides a command line into {{/pyboard}} where you can use commands like {{cp}} (copy), {{df}} (get filesystem info), {{rm}} (delete files), {{rsync}} (synchronise with a local directory), and {{edit}} (with vim being the default editor, but changeable). {{repl}} provides access to the Python REPL so you can execute your code. Highly recommended. The `rsync` feature alone is worth it, e.g., you can sync your installation with a local directory that can be maintained on github.
The following MicroPython distributions include "baked-in" support for many Pimoroni products:
* [Pimoroni MicroPython distribution for RP2040|https://github.com/pimoroni/pimoroni-pico#micropython]
* [Pimoroni MicroPython distribution for RP2350|https://github.com/pimoroni/pimoroni-pico-rp2350]
At line 10 changed one line
! MicroPython Language Documentation
!! MicroPython Language Documentation / General
At line 14 changed 2 lines
* [MicroPython libraries|https://docs.pycom.io/firmwareapi/micropython/] curated list from PyCom
* [OpenMV MicroPython libraries|https://docs.openmv.io/library/index.html#python-standard-libraries-and-micro-libraries]
** [Language Reference|https://docs.micropython.org/en/latest/reference/index.html]
** [Libraries Reference|https://docs.micropython.org/en/latest/library/index.html]
At line 30 added 16 lines
!! Tutorials
__[[unvetted]__
* [MicroPython tutorials|https://docs.micropython.org/en/latest/search.html?q=tutorial] from micropython.org
* [MicroPython: An Intro to Programming Hardware in Python|https://realpython.com/micropython/] from RealPython
* [Introduction: Get Started with MicroPython|https://www.kevsrobots.com/learn/micropython/]
* [MicroPython tutorial for ESP32|https://docs.micropython.org/en/latest/esp32/tutorial/index.html]
!! Libraries & Resources
* [micropython-lib|https://github.com/micropython/micropython-lib/], a repository of packages designed to be useful for writing MicroPython applications
* [OpenMV MicroPython libraries|https://docs.openmv.io/library/index.html#python-standard-libraries-and-micro-libraries]
At line 19 removed one line
! Tools, Hardware
At line 49 added 2 lines
!! Tools, Hardware
At line 59 added one line
! Installing MicroPython on Linux
At line 61 added 5 lines
To install MicroPython on Linux, where normally one would use Python (CPython) you need to install the machine library. This can be accomplished via:
{{{
sudo apt install micropython
}}}