Below is my platformio.ini file.
I did erase the .pio folder on the exact copy, but I am afraid to do it on the original since there appears to be something magical about that precise location on the drive. As I am not familiar with “shared build” or “cache directories”, I believe the answer is “no.”
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:adafruit_matrix_portal_m4]
platform = atmelsam
board = adafruit_matrix_portal_m4
framework = arduino
upload_protocol = sam-ba
upload_port = COM7
monitor_port = COM7
monitor_speed = 115200
lib_deps =
adafruit/Adafruit Protomatter@^1.2.1
adafruit/Adafruit ImageReader Library@^2.7.0
adafruit/Adafruit TinyUSB Library@^1.10.0
knolleary/PubSubClient@^2.8
bblanchon/ArduinoJson@^6.19.2
khoih-prog/WiFiNINA_Generic@^1.8.14-3
adafruit/Adafruit NeoMatrix@^1.2.0
adafruit/Adafruit NeoPixel@^1.10.4
khoih-prog/SAMD_TimerInterrupt@^1.9.0