; 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:motorcontrol] platform = atmelavr framework = arduino ; TARGET SETTINGS ; PlatformIO requires the board parameter. Must match your actual hardware board = ATmega328P ; Clock frequency in [Hz] board_build.f_cpu = 16000000L board_hardware.oscillator = external ; Hardware UART for serial upload board_hardware.uart = no_bootloader ; Brown-out detection board_hardware.bod = 2.7v build_unflags = -flto board_upload.speed = 115200 monitor_speed = 9600 ; Custom upload procedure upload_protocol = custom ; Avrdude upload flags upload_flags = -C$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf -p$BOARD_MCU -PCOM3 -cstk500 -e ; Avrdude upload command upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i lib_deps = 883 #Servo