Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@
}
},
"runArgs": [
"--privileged",
"--network=host",
"--device=/dev/bus/usb",
// below is the MAJOR version of the device, which is 166 for my device.
"--device-cgroup-rule=c 166:* rmw",
// /dev/serial/by-id/ is the right way of accessing devices, tell PIO to use that.
"-v", "/dev/serial:/dev/serial",
"-v", "/dev/bus/usb:/dev/bus/usb",
// arch linux tty* is owned by uucp (986)
"--group-add=986",
// debian tty* is owned by dialout (20)
"--group-add=20"
],
"postCreateCommand": {
"mknod": "for minor in `seq 0 9`; do sudo mknod -m 666 /dev/ttyACM$minor c 166 $minor; done",
"platformio": "pipx install platformio",
"opencode": "curl -fsSL https://opencode.ai/install | bash"
},
Expand All @@ -44,4 +48,4 @@
]
}
}
}
}