60 lines
1.4 KiB
INI
60 lines
1.4 KiB
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:ATmega88P]
|
|
platform = atmelavr
|
|
board = ATmega88P
|
|
framework = arduino
|
|
board_build.f_cpu = 1000000L
|
|
lib_deps = fastled/FastLED@^3.9.2
|
|
|
|
[env:program_via_DiamexISP]
|
|
board = ATmega88P
|
|
framework = arduino
|
|
platform = atmelavr
|
|
upload_protocol = avrispv2
|
|
board_build.f_cpu = 8000000L
|
|
upload_port = /dev/ttyACM0
|
|
upload_speed = 19200
|
|
upload_flags =
|
|
-c avrispv2
|
|
-p
|
|
$BOARD_MCU
|
|
-P
|
|
$UPLOAD_PORT
|
|
-b
|
|
$UPLOAD_SPEED
|
|
-c avrispv2
|
|
upload_command = avrdude -p atmega88p -P /dev/ttyACM0 -b 19200 -c stk500v2 -U flash:w:.pio/build/program_via_DiamexISP/firmware.hex:i
|
|
lib_deps = fastled/FastLED@^3.9.2
|
|
|
|
[env:attiny261]
|
|
board = ATmega88P
|
|
framework = arduino
|
|
platform = atmelavr
|
|
upload_protocol = arduino
|
|
upload_speed = 115200
|
|
board_build.f_cpu = 8000000L
|
|
upload_port = COM10
|
|
board_fuses.lfuse = 0xE2
|
|
board_fuses.hfuse = 0xD9
|
|
board_fuses.efuse = 0xFF
|
|
upload_flags =
|
|
-C
|
|
$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
|
|
-p
|
|
$BOARD_MCU
|
|
-P
|
|
$UPLOAD_PORT
|
|
-c
|
|
stk500v2
|
|
upload_command = avrdude -B 115200 $UPLOAD_FLAGS -U flash:w:$SOURCE:i
|
|
lib_deps = fastled/FastLED@^3.9.2
|