An environment manager helps you create “virtual environments” on your machine, where you can safely install different packages and their dependencies in an isolated location. It is also an environment manager, which is the key function we’ll be using it for in this book. The difference between Anaconda and Miniconda is that Anaconda installs over 250 additional packages (many of which you might never use), while Miniconda is a much smaller distribution that comes bundled with just a few key packages you can then install additional packages as you need them using the command conda install.Ĭonda is a piece of software that supports the process of installing and updating software (like Python packages). If you are unfamiliar with Miniconda and Anaconda, they are distributions of Python that also include the conda package and environment manager, and a number of other useful packages. If you have previously installed the Anaconda or Miniconda distribution feel free to skip to Section 2.2.2. Miniconda is a lightweight version of the popular Anaconda distribution. We recommend installing the latest version of Python via the Miniconda distribution by following the instructions in the Miniconda documentation. The Docker approach is recommended for anyone that runs into issues installing or using any of the software below on their specific operating system, or anyone who would simply prefer to use Docker - if that’s you, skip to Section 2.3 for now, and we’ll describe the Docker setup later in Section 2.6. However, we also support an alternative setup with Docker that has everything you need already installed to get started. Section 2.2.1 and Section 2.2.2 describe how to install the software you’ll need to develop a Python package and follow along with the text and examples in this book. We’ll assume Mac and Linux users are using the “Terminal” and Windows users are using the “Anaconda Prompt” (which we’ll install in the next section) as a CLI. We’ll be using a CLI for various tasks throughout this book. The command-line interface #Ī command-line interface (CLI) is a text-based interface used to interact with your computer. Here is the pymakr.json that makes things work for me.If you intend to follow along with the code presented in this book, we recommend you follow these setup instructions so that you will run into fewer technical issues. This will open the pymakr.json file and you can make the required edits.Īfter that you have to update the “auto_connect” setting to false or else It will not recognize the board. To do so open Visual Studio, I will presume you have installed the PymaKr extension already, and click on “All commands” in the bottom toolbar (or what ever that bar is called) and select Global Settings. Once you have the correct setting you have to update the address settings accordingly in Visual Studio. But, I just couldn’t figure out how to make it recognize my Heltec Wifi Kit 32 Dev Board.Īfter some tinkering today, I figured it out! First, you will have to find out what your specific USB port is that the Dev Board is connected to, you can do that with: ls /dev/ | grep -i "tty" | grep -i "usb" Although geared towards the Pycom boards some claimed it does work fine with other ESP32 based boards too. Pymakr enables you to communicate to specific Pycom board using the build in command line REPL, you can run a single file to your board, sync your entire project or directly type and execute commands. The main thing is that I wanted to be able to quickly deploy code to an ESP32 based Dev Board, and there is a tool for that! I had experimented with PymaKr a few weeks ago but ran into some issues. A nice set of extensions focussed specifically on Python is the Python Extension Pack. I had installed Visual Studio Code a while ago and found some nice extension that I could use for MicroPython. After a few weeks of MicroPython development using just command line tools and regular text editors it was finally time to once and for all figure out why I couldn’t get Visual Studio Code to behave on my Mac.
0 Comments
Leave a Reply. |