Creating a new project
Welcome to the PlatformIO and VSCode Spencer programming guide.
We'll use PlatformIO and VSCode to teach you how to upload code to your Spencer, so let's get started!
Installation
Before starting make sure to download and install Visual Studio Code. You can do that right here.Â
Go to the Extensions tab and type PlatformIO. Then click Install.
When prompted by PlatformIO, restart VSCode.Â
Creating a new project
Once you're on PlatformIO's home page, select New Project. The program will then prompt you to choose a name for your project so be creative. We're going to start with a simple Hello World.Â
Type in esp32 dev and select the Espressif ESP32 Dev Module board from the boards dropdown menu. Leave the Framework option on Arduino. The default project path on Windows is Documents/PlatformIO/Projects, but youâre free to save it wherever you like. Â
Type in esp32 dev and select the Espressif ESP32 Dev Module board from the boards dropdown menu. Leave the Framework option on Arduino. The default project path on Windows is Documents/PlatformIO/Projects, but youâre free to save it wherever you like. Â
After clicking Finish, youâll need to wait a bit while the board files are downloaded.