Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Created July 7, 2023 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobCranfill/8d9f6c003cab0a75ff339ee7d9d493fa to your computer and use it in GitHub Desktop.
Save RobCranfill/8d9f6c003cab0a75ff339ee7d9d493fa to your computer and use it in GitHub Desktop.
A bash function to mount a CircuitPython device to a WSL mount
# put this in .bashrc - or .bash_aliases?
function mountcirc() {
# mount drive $1 to /mnt/CIRCUITPY
sudo mount -t drvfs $1 /mnt/CIRCUITPY/
echo "Mounted $1 to /mnt/CIRCUITPY"
ls -l /mnt/CIRCUITPY
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment