arduino ghost project ๐ป
You need USBIPD. Install the .msi
file,
# run as admin...
usbipd list
usbipd bind --busid 1-2
usbipd attach --wsl --busid 1-2
# ...
usbipd detach --busid 1-2
usbipd unbind --busid 1-2
You might want to reattach it when there is problem with usb connection
# in WSL2
lsusb # check port
sudo chmod a+rw /dev/ttyACM0 # give permissions if not given
- install
Arduino
VS Code add-on for coloring> Arduino: initialize
to have proper jsons in.vscode/
- install
arduino-cli
ensure you have proper avr core set (can be downloaded from Arduino VS Code add-on) (go through hell with path assignment) - Command Palette:
"C/C++: Select a Configuration..." -> Arduino
alias ac=arduino-cli
ac compile -p /dev/ttyACM0 -b arduino:avr:uno -u ~/projects/00_ongoing/ouija/
alias ac=arduino-cli
ac compile -p /dev/tty.usbserial-510 -b arduino:avr:mega -u ./