Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hsun1031/devcontainer_platformio
Devcontainer for PlatformIO
https://github.com/hsun1031/devcontainer_platformio
devcontainer-template platformio
Last synced: about 1 month ago
JSON representation
Devcontainer for PlatformIO
- Host: GitHub
- URL: https://github.com/hsun1031/devcontainer_platformio
- Owner: Hsun1031
- Created: 2023-11-14T11:50:37.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-22T05:06:19.000Z (6 months ago)
- Last Synced: 2024-11-05T14:06:49.013Z (3 months ago)
- Topics: devcontainer-template, platformio
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Devcontainer for PlatformIO
This is a devcontainer for [PlatformIO](https://platformio.org/) with [Visual Studio Code](https://code.visualstudio.com/).
## devcontainer.json
Use `Dockerfile` as the build file for the devcontainer.
```json
{
"name": "PlatformIO devcontainer",
"build": {
"dockerfile": "Dockerfile"
}
...
}
```Use `hsun1031/devcontainer_platformio` as the base image.
```json
{
"name": "PlatformIO devcontainer",
"image": "hsun1031/devcontainer_platformio:latest",
...
}
```## How to use this devcontainer on GitHub Codespaces
Init platformio project. [board list](https://docs.platformio.org/en/latest/boards/index.html)```bash
pio init --ide vscode --board
```Login platformio account.
```bash
pio account login
```[Remote MCU] Connect to the device.
```bash
pio remote agent start
```[Codespace] List for remote devices.
```bash
pio remote device list
```Flash and Monitor.
```bash
pio remote run --target upload --environment
pio remote device monitor
```
## esp-web-flash-server[Github](https://github.com/esp-rs/esp-web-flash-server)
### Command
```bash
web-flash --chip .pio/build//firmware.elf
```example:
```bash
web-flash --chip esp32 .pio/build/esp32doit-devkit-v1/firmware.elf
```