-
Notifications
You must be signed in to change notification settings - Fork 54
/
platformio.ini
159 lines (149 loc) · 3.82 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
; 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
; http://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = esp32, esp32s2, esp32s3, esp32c3, esp8266, rp2040
[env]
build_flags =
-std=c++14
-Wall
-O2
; -DESPFC_DEBUG_SERIAL
; -DESPFC_DEBUG_PIN=2 ; specify pin number (board specific)
; -DESPFC_DEV_PRESET_MODES
; -DESPFC_DEV_PRESET_BLACKBOX=1 ; specify port number (board specific)
; -DESPFC_DEV_PRESET_DSHOT
; -DESPFC_DEV_PRESET_SCALER
; -DNO_GLOBAL_INSTANCES
; -DDEBUG_ESP_PORT=Serial
; -DDEBUG_ESP_CORE
; -DDEBUG_ESP_WIFI
; -DDEBUG_RP2040_PORT=Serial
; -DDEBUG_RP2040_SPI
monitor_speed = 115200
upload_speed = 921600
; monitor_filters = esp8266_exception_decoder
; monitor_filters = esp32_exception_decoder
lib_deps =
yoursunny/WifiEspNow @ ^0.0.20230713
https://github.com/rtlopez/espnow-rclink/archive/refs/tags/v0.1.1.zip
; EspNowRcLink=symlink://../espnow-rclink
[env:esp32]
board = lolin32
platform = espressif32
framework = arduino
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.partitions = partitions_4M_nota.csv
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
extra_scripts = merge_firmware.py
[env:esp32s3]
board = lolin_s3_mini
platform = espressif32
framework = arduino
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.partitions = partitions_4M_nota.csv
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-DESP32S3
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
build_unflags =
-DBOARD_HAS_PSRAM
extra_scripts = merge_firmware.py
board_upload.use_1200bps_touch = yes
board_upload.wait_for_upload_port = yes
board_upload.require_upload_port = yes
[env:esp32s2]
board = esp32-s2-saola-1
platform = espressif32
framework = arduino
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-DESP32S2
-DARDUINO_USB_MODE=0
-DARDUINO_USB_CDC_ON_BOOT=1
extra_scripts = merge_firmware.py
board_upload.use_1200bps_touch = yes
board_upload.wait_for_upload_port = yes
board_upload.require_upload_port = yes
[env:esp32c3]
board = esp32-c3-devkitm-1
platform = espressif32
framework = arduino
board_build.mcu = esp32c3
board_build.f_cpu = 160000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
-DESP32C3
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
extra_scripts = merge_firmware.py
[env:esp8266]
board = d1_mini
platform = espressif8266
framework = arduino
board_build.f_cpu = 160000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.ldscript = eagle.flash.4m3m.ld
;board_build.ldscript = eagle.flash.1m128.ld ; d1_mini_lite
;board_build.ldscript = eagle.flash.16m15m.ld ; d1_mini_pro
lib_deps =
${env.lib_deps}
build_flags =
${env.build_flags}
[env:rp2040]
board = pico
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
framework = arduino
board_build.core = earlephilhower
lib_deps =
build_flags =
${env.build_flags}
-DARCH_RP2040
-DIRAM_ATTR=""
; -DIRAM_ATTR='__attribute__ ((section(".time_critical.iram_attr")))'
[env:nrf52840]
platform = https://github.com/maxgerhardt/platform-nordicnrf52
board = xiaoblesense
framework = arduino
lib_deps =
build_flags =
${env.build_flags}
-DARCH_NRF52840
-DIRAM_ATTR=""
[env:native]
platform = native
lib_deps =
ArduinoFake
build_flags =
-DIRAM_ATTR=""
-DUNIT_TEST
-std=c++14
-g
-DNO_GLOBAL_INSTANCES
; -DUNITY_INCLUDE_PRINT_FORMATTED