-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
42 lines (40 loc) · 1.12 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
; 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]
upload_port = usb
upload_protocol = custom
upload_flags =
-C
; use "tool-avrdude-megaavr" for the atmelmegaavr platform
$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-c
usbasp
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
[env:mega328P]
platform = atmelavr
board = ATmega328P
framework = arduino
# Arduino SoftwareSerial clients can't reliably work faster than 57600
build_flags = -D OSD_BAUD=57600
-D OSD_H_OFFSET=31
-D OSD_V_OFFSET=-8
-D CMD_BUF_SIZE=32
-D SERIAL_TIMEOUT=500
[env:mega328P_debug]
platform = atmelavr
board = ATmega328P
framework = arduino
build_type = debug
build_flags = ${env:mega328P.build_flags}
-D DEBUG