This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
112 lines (99 loc) · 3.05 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
; PlatformIO Project Configuration File for MightyCore
; https://github.com/MCUdude/MightyCore/
;
; 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
; https://github.com/MCUdude/MightyCore/blob/master/PlatformIO.md
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = type1 ; Default build target
[common]
; Common settings for all environments
[env]
framework = arduino
; BUILD OPTIONS
; Comment out to enable LTO (this line unflags it)
build_unflags =
-std=gnu++11
-std=gnu++14
; -std=gnu++17
-Os
;-flto
; Extra build flags
build_flags =
; -std=gnu++20
;-O2
-Ofast
-DSERIAL_TX_BUFFER_SIZE=128
-DSERIAL_RX_BUFFER_SIZE=128
;platform_packages = platformio/toolchain-atmelavr@file:///home/jwscoggins/sys/toolchains/avr-gcc-11.2.0
lib_deps =
;Wire
;adafruit/Adafruit BusIO
;adafruit/Adafruit GFX Library
;adafruit/Adafruit ST7735 and ST7789 Library
;adafruit/Adafruit ILI9341
;adafruit/RTClib
;adafruit/Adafruit FT6206 Library
;adafruit/Adafruit BluefruitLE nRF51
;dhrbaksteen/ArudinoOPL2
;adafruit/Adafruit Si5351 Library
;adafruit/Adafruit Seesaw Library
;adafruit/Adafruit PCF8591
;starmbi/hp_BH1750
;adafruit/Adafruit AS7341
;adafruit/Adafruit MCP9808 Library
[env:type1]
platform = atmelavr
; TARGET SETTINGS
; Chip in use
board = ATmega1284P
; Clock frequency in [Hz]
board_build.f_cpu = 20000000L
; Current pinout
board_build.variant = standard
; Serial bootloader protocol
upload_protocol = arduino
; Serial upload port
;upload_port = /dev/cu.usbserial*
upload_port = /dev/ttyUSB*
; Get upload baud rate defined in the fuses_bootloader environment
board_upload.speed = ${env:1284p_fuses_bootloader.board_bootloader.speed}
; SERIAL MONITOR OPTIONS
; Serial monitor port defined in the Upload_UART environment
monitor_port = ${env:1284p.upload_port}
; Serial monitor baud rate
monitor_speed = 9600
build_flags =
${env.build_flags}
-DCHIPSET_TYPE1
; Run the following command to set fuses
; pio run -e fuses_bootloader -t fuses
; Run the following command to set fuses + burn bootloader
; pio run -e fuses_bootloader -t bootloader
[env:1284p_fuses_bootloader]
platform = atmelavr
; TARGET SETTINGS
; Chip in use
board = ATmega1284P
board_hardware.oscillator = external ; Oscillator type
board_hardware.uart = uart0 ; Set UART to use for serial upload
board_bootloader.speed = 115200 ; Set bootloader baud rate
board_hardware.bod = 2.7v ; Set brown-out detection
board_hardware.eesave = yes ; Preserve EEPROM when uploading using programmer
board_hardware.ckout = yes ; Treat D1 as CLKO?
board_build.f_cpu = 20000000L
upload_protocol = stk500v1
upload_port = /dev/ttyACM0
upload_speed = 19200
upload_flags =
-P$UPLOAD_PORT
-b$UPLOAD_SPEED
;upload_protocol = arduinoisp
;upload_flags = ; Select USB as upload port and divide the SPI clock by 8
; -PUSB
; -B8