Skip to content

Hsun1031/devcontainer_platformio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Devcontainer for PlatformIO

This is a devcontainer for PlatformIO with Visual Studio Code.

devcontainer.json

Use Dockerfile as the build file for the devcontainer.

{
    "name": "PlatformIO devcontainer",
	"build": {
        "dockerfile": "Dockerfile"
    }
    ...
}

Use hsun1031/devcontainer_platformio as the base image.

{
    "name": "PlatformIO devcontainer",
	"image": "hsun1031/devcontainer_platformio:latest",
    ...
}

How to use this devcontainer on GitHub Codespaces

Init platformio project. board list

pio init --ide vscode --board <your board>

Login platformio account.

pio account login

[Remote MCU] Connect to the device.

pio remote agent start

[Codespace] List for remote devices.

pio remote device list

Flash and Monitor.

pio remote run --target upload --environment <your board>
pio remote device monitor