I am using my own environment which I copy manually into every project (I haven’t figured out if I can define my own framework). It uses the AVR microcontrollers but without Arduino.
So my environment settings in platformio.ini looks like this:
[env:ATmega328P]
platform = atmelavr
board = ATmega328P
board_build.f_cpu = 1000000UL
upload_protocol = custom
upload_flags = -pm328p
-Pusb
-B4
-cusbasp
upload_command = "C:\Program Files (x86)\AVRDUDESS\avrdude.exe" $UPLOAD_FLAGS -U flash:w:$SOURCE:i
My question is: while the “upload_flags” can easily spread over several lines, the “upload_command” needs to be a single row - is there a way for the sake of readability to split this long line?