33 lines
833 B
INI
33 lines
833 B
INI
; 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]
|
|
platform = atmelmegaavr
|
|
board = ATtiny402
|
|
framework = arduino
|
|
|
|
board_build.f_cpu = 8000000L
|
|
|
|
|
|
[env:HackSpaceCon_Wand_Upload]
|
|
# before you can debug, you need to install pymcuprog in platformio virtual environment.
|
|
# python -m pip install pymcuprog
|
|
upload_speed = 115200
|
|
upload_flags =
|
|
--tool
|
|
uart
|
|
--device
|
|
attiny402
|
|
--uart
|
|
$UPLOAD_PORT
|
|
--clk
|
|
$UPLOAD_SPEED
|
|
upload_command = pymcuprog write --erase $UPLOAD_FLAGS --filename $SOURCE
|