Development

ESP8266 Programming with VS Code

Summary

ESP8266 modules are cheap and flexible microcontrollers. They can be purchased easily on AliExpress (https://www.aliexpress.com/item/1005006211265531.html) or elsewhere. They are one of many types of Arduino compatible microcontrollers.

VS Code is a Microsoft IDE that is common across the industry – https://code.visualstudio.com/

The below page focuses on the requirements to program the module in Linux.

Plug-in

To program an Arduino style unit with VS Code, you’ll need the Arduino extension (Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-arduino). Once installed, it will prompt for the Arduino CLI, choose to use the “built in” CLI at this point.

Continue reading

Install and Manage Node.js with NVM

Installation Steps

Download and run the installation file:

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash

Exit the terminal session then reopen a terminal so that the environment changes take effect. Then run:

nvm -v

to ensure NVM is installed correctly.

Using NVM

Install the latest Node version with:

nvm install node

Install a specific version with:

nvm install 16

or for a more specific version:

nvm install 14.4.5

List the installed versions with:

nvm ls

Switch to an installed version with:

Continue reading