You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.7 KiB

; 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
[platformio]
default_envs = Upload_UART
[env]
platform = atmelavr
framework = arduino
board = ATmega644P
board_build.f_cpu = 16000000L
board_build.variant = bobuino
build_unflags = -flto
build_flags =
monitor_port = ${env:Upload_UART.upload_port}
monitor_speed = 9600
lib_deps = arduino-libraries/ArduinoRS485@^1.0.0
[env:Upload_UART]
upload_protocol = arduino
upload_port = /dev/ttyACM0
board_upload.speed = ${env:fuses_bootloader.board_bootloader.speed}
lib_deps =
tmrh20/RF24@^1.3.11
arduino-libraries/ArduinoDMX@^1.0.1
uipethernet/UIPEthernet@^2.0.8
arduino-libraries/ArduinoRS485@^1.0.0
[env:Upload_ISP]
upload_protocol = custom
upload_flags =
-C$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
-p$BOARD_MCU
-PUSB
-cusbasp
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
lib_deps =
tmrh20/RF24@^1.3.11
arduino-libraries/ArduinoDMX@^1.0.1
uipethernet/UIPEthernet@^2.0.8
arduino-libraries/ArduinoRS485@^1.0.0
[env:fuses_bootloader]
board_hardware.oscillator = external
board_hardware.uart = uart0
board_bootloader.speed = 115200
board_hardware.bod = 2.7v
board_hardware.eesave = yes
upload_protocol = usbasp
upload_flags =
-PUSB
-B8
lib_deps =
tmrh20/RF24@^1.3.11
arduino-libraries/ArduinoDMX@^1.0.1
uipethernet/UIPEthernet@^2.0.8
arduino-libraries/ArduinoRS485@^1.0.0