-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
102 lines (91 loc) · 2.29 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
; 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
[platformio]
default_envs = debug-d1_mini
[env]
lib_deps =
bblanchon/ArduinoJson@^6.19.4
; ottowinter/AsyncMqttClient-esphome@0.8.6
marvinroger/AsyncMqttClient@^0.9.0
adafruit/Adafruit NeoPixel@^1.10.6
esphome/ESPAsyncWebServer-esphome@2.1.0
[common]
board_build.filesystem = littlefs
framework = arduino
lib_deps =
${env.lib_deps}
extra_scripts =
pre:scripts/install_deps.py
pre:scripts/build_ui.py
[common:d1_mini]
extends = common
monitor_speed = 115200
upload_speed = 460800
platform = espressif8266
board = d1_mini
build_flags =
-Wno-nonnull-compare
-DUSE_ESP8266
extra_scripts =
${common.extra_scripts}
pre:scripts/build_d1_mini_pinout.py
[common:esp32]
extends = common
monitor_speed = 115200
upload_speed = 460800
platform = espressif32
monitor_filters = esp32_exception_decoder ; this increases size of elf
board = esp32dev
; board_build.partitions = default_8MB.csv
build_flags =
-Wno-nonnull-compare
-DUSE_ESP32
extra_scripts =
${common.extra_scripts}
pre:scripts/build_esp32_pinout.py
[common:zaku-core_rev1]
extends = common:esp32
monitor_speed = 115200
upload_speed = 460800
platform = espressif32
board = esp32dev
monitor_dtr = 1
board_build.mcu = esp32s2
; board_build.partitions = default_8MB.csv
build_flags =
-Wno-nonnull-compare
-DUSE_ESP32
-DUSE_ZAKU_CORE
-D ARDUINO_USB_CDC_ON_BOOT
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D PIO_FRAMEWORK_ARDUINO_USB_FULLMODE
extra_scripts =
${common.extra_scripts}
pre:scripts/build_zaku_core_pinout.py
[env:debug-d1_mini]
extends = common:d1_mini
monitor_filters = esp8266_exception_decoder
build_type = debug
debug_tool = esp-prog
debug_build_flags = -Os
[env:debug-esp32]
extends = common:esp32
build_type = debug
debug_build_flags = -Os
[env:debug-zaku-core_rev1]
extends = common:zaku-core_rev1
build_type = debug
debug_build_flags = -Os
[env:release_d1_mini]
extends = common:d1_mini
build_type = release
[env:release_zaku-core_rev1]
extends = common:zaku-core_rev1
build_type = release