From 74e42450f16076655779e59d1e2acbc9fc177d80 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Thu, 19 Mar 2020 12:47:13 +0300 Subject: [PATCH] use MiniCore for ATMega --- Firmware/MotorControl/platformio.ini | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Firmware/MotorControl/platformio.ini b/Firmware/MotorControl/platformio.ini index 10da86b..5f9619e 100644 --- a/Firmware/MotorControl/platformio.ini +++ b/Firmware/MotorControl/platformio.ini @@ -10,17 +10,25 @@ [env:motorcontrol] platform = atmelavr -board = uno framework = arduino -build_flags = +; TARGET SETTINGS +; PlatformIO requires the board parameter. Must match your actual hardware +board = ATmega328P +; Clock frequency in [Hz] +board_build.f_cpu = 12000000L +board_hardware.oscillator = external +; Hardware UART for serial upload +board_hardware.uart = no_bootloader +; Brown-out detection +board_hardware.bod = 1.8v board_upload.speed = 115200 -monitor_speed = 115200 +monitor_speed = 9600 upload_protocol = stk500 upload_flags = - -P/dev/ttyUSB1 + -PCOM8 lib_deps = Servo \ No newline at end of file