serial_debugger/hardware/_controller/upload.ps1

5 lines
263 B
PowerShell

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