We will summarize the steps to build a program using M5Unified using Visual Studio Code (hereinafter VSCode) and its extension Platform IO.
You can follow the steps.
The versions at the time of writing this document are as follows.
VSCode download page Then, specify the OS and download the VSCode installer.
When VSCode is started, it is an extension for building a compilation environment for embedded development Platform IO Install .
After installing VSCode and Platform IO, create a project.
When the Project Wizard appears, enter each item.
Name : Enter a project name.
Board : Select the board on which you want to write the program. (e.g. M5Stack Core2, M5Stack AtomS3, etc.)
Framework : Select Arduino.
Once entered, click "Finish".
Add the M5Stack library "M5Unified", which is the purpose introduced this time, to the project.
When the installation is completed successfully, the "Congrats" dialog will be displayed like this,
The library is added to the project.
Build the sample program and write it to M5Stack.
※When using M5Stack without a screen,
「3. Add a library to a project」、add 「FastLED」to a project。
After that, click (1) to build, or (2) to write a program to Build + M5Stack.
If successful, "Success" will be displayed on the terminal as shown in (3).
That's all for how to install M5Unified using Visual Studio Code.
If you have any problems, please report them to Issues with instructions.
Thank you for your hard work!