[env:pico2]
extends = rp2350_base
board = rpipico2
upload_protocol = picotool

# add our variants files to the include and src paths
build_flags = ${rp2350_base.build_flags} 
  -DRPI_PICO2
  -Ivariants/rpipico2
  -DDEBUG_RP2040_PORT=Serial
  -DHW_SPI1_DEVICE
  -L "${platformio.libdeps_dir}/${this.__env__}/bsec2/src/cortex-m33"
lib_deps =
  ${rp2350_base.lib_deps}
debug_build_flags = ${rp2350_base.build_flags}, -g
debug_tool = cmsis-dap ; for e.g. Picotool