I have a platformio.ini file that is used for programming an ATMega328p through an Arduino as ISP. I’d like to generalize this file so that upload_port and the avrdude.conf path in upload_flags are not hardcoded to my system, but rather so that there are ideally no changes made to this file across systems. Is there a way to accomplish this? Thanks in advance.
Here is my platformio.ini file:
[env:program_via_ArduinoISP] platform = atmelavr framework = arduino board = atmega328p upload_protocol = arduino upload_port = /dev/cu.usbmodem21301 upload_speed = 19200 upload_flags = -C /Users/camerongoddard/Library/Arduino15/packages/MiniCore/tools/avrdude/7.1-arduino.1/etc/avrdude.conf -p $BOARD_MCU -P $UPLOAD_PORT -b $UPLOAD_SPEED -c stk500v1 upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i