5 lines
275 B
PowerShell
5 lines
275 B
PowerShell
# Get list of boards
|
|
$COM_PORT=$(arduino-cli board list | Select-String -Pattern "adafruit:samd:adafruit_feather_m0" | %{ $_.ToString().Split(' ')[0]; })
|
|
Write-Host "Using serial port $($COM_PORT)"
|
|
arduino-cli upload --fqbn adafruit:samd:adafruit_feather_m0 -p $COM_PORT
|