PlatformIO for Visual Studio Code

posted in: IOT | 0

Everything we do in IOT involves some form of programming.

There are many different editors available for you to choose from, my personal preference is the PlatformIO IDE. PlatformIO IDE is easy to use and set up, adding devices like ESP32 development boards is automatic which makes it much easier than some of the other editors available.

Before we start, let’s take a talk a little about computer languages. I use quite a lot of different languages C/C++, Micropython, Javascript etc. Most of the work I do with ESP8266/ESP32 seems to end up being in C/C++. And like most makers I started out using the Arduino IDE language which is a variation of C/C++.

Arduino’s words:

“Can I program the Arduino board in C?

Yes, in fact, you already are; the Arduino language is merely a set of C/C++ functions that can be called from your code. Your sketch undergoes minor changes, for example automatic generation of function prototype, and then is passed directly to a C/C++ compiler (avr-g++). All standard C and C++ constructs supported by avr-g++ should be in Arduino.”

Today, mostly all of my projects end up being done in PlatformIO on the Visual Studio Code base. coding devices like ESP32 ESP8266 M5Stack WEMOS etc.

Setting Up PlatformIO, and I’m talking about Windows 10 set up, is quite easy with plenty of help out there. But to get you started in the right direction.

Here is the link: PlatformIO

If you are ready to install simply click the.

On the next screen I would choose.

(But if you wish follow the atom editor advice.)

If you don’t already have Microsoft Visual Studio Code,

installed, then you will need to install it first.

Click this Download to install.

Once you have Visual Studio Code installed and running,

follow on to install PlatformIO extension.

And that’s all there is to it… this is just the basic instructions for installing PlatformIO IDE.

I recommend you read the Quick Start Guide before you start.



— (repost) —



Leave a Reply

Your email address will not be published. Required fields are marked *