
This extension enables VSCode to communicate to a board running MicroPython using the build-in command line REPL. To use VSCode for MicroPython, you need to install the Pymakr extension (see Fig. “The majority of Google developers are using it now,” Chris Capossela, Microsoft’s chief marketing officer, said on the Windows Weekly podcast. It is compatible with Windows, Linux and Mac OS X. The open-source VSCode is a code editor redefined and optimized for building and debugging applications. This is an update to the "Getting started with MicroPython": I am changing from Atom to Visual Studio Code (VSCode), and using the PyMakr extension, it is possible to program and debug MicroPython on VSCode. I wrote a tutorial about installing MicroPython on the ESPs, as well a lot of articles about these microcontrollers and MicroPython. These two microcontrollers are compatible with MicroPython and it is easy to integrate sensors and actors programming using this language. MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments.īesides C++ and C, I use MicroPython to program microcontrollers, especially the ESP32/ESP8266 types.

The file for flashing is located in the directory target/release.Quoting the official MicroPython's website: Open terminal in VS Code and build the example:įlashing of the resulting file could be done by espflash and mounting the device to Lima or using a tool like Adafruit WebSerial ESPTool. Open VS Code with the installed Remote Container plugin and click Re-Open in Container:

Open file ~/.lima/docker/lima.yaml and add writable flag to desired folder:Ĭreate context for Docker-CLI to connect to dockerd running in the VM:ĭocker context create lima -docker "host=unix://$/.lima/docker/sock/docker.sock" It’s necessary to enable write operation otherwise, the workspace mounted from VS Code is read-only.

There is one important tweak in the Lima configuration. Let’s see how it can be used for the development of software for embedded hardware like ESP32-C3 using source code from Ferrous Systems training:Ĭreate Linux VM with Dockerd (following instructions from Kevin O’Brien – Utilizing Docker CLI without Docker Desktop): It has several advantages over Docker Desktop for macOS or Podman. Lima is a solution for macOS for managing Linux VM on macOS which plays well with Dev Containers.
