PROGRAMMING ARDUINO ON VISUAL STUDIO CODE EDITOR WITH PLATFORM.IO OR ARDUINO EXTENSION

The Arduino IDE is a great programming tool, it is simple to use and it contains probably all resources one will need to build a project, but evaluating it as a code editor, it is a not the perfect tool. It lacks programming aiding features like IntelliSense, code suggestions, auto-complete, auto-correct, and debug tools, which make the development of projects with a large codebase, easy and endears developers to use code editors like Visual Studio Code and Atom. The above reason coupled with the large user base of most of these editors led to the development of plugins/extensions that enabled the use of some of them for development code for Arduino and other compatible boards.

PROGRAMMING ARDUINO ON VISUAL STUDIO CODE EDITOR WITH PLATFORM.IO OR ARDUINO EXTENSION

For this tutorial, we will take a look, how these extensions can be used to program Arduino. Quite a number of editors exist and different variation of extensions have been developed but for today’s tutorial, we will focus on Visual Studio Code (VScode) as our code editor and explore it’s use with the Platform.io and Arduino extensions.

At the end of today’s tutorial, you will know how to develop code for the Arduino and similar/compatible boards using the Arduino and Platform.io extensions on VScode.

REQUIRED COMPONENTS

We will use the Arduino blink example for demonstration of today’s tutorial, thus you will only need the target boards.

  1. Arduino Uno (or any other board of the family)
  2. NodeMCU

Any versions/variations of these boards are fine, as long as they work well when you program them using the Arduino IDE. In addition to the components mentioned above, you will need the latest VScode setup. Follow this link to download the setup file and install it on your computer. Ensure you select the “add files to path” option during installation. After installation, restart your computer to allow the installation to settle in.

Read more: PROGRAMMING ARDUINO ON VISUAL STUDIO CODE EDITOR WITH PLATFORM.IO OR ARDUINO EXTENSION


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

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

Scroll to Top