-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathplatformio.ini
More file actions
163 lines (132 loc) · 3.81 KB
/
platformio.ini
File metadata and controls
163 lines (132 loc) · 3.81 KB
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
160
161
162
163
; File: platformio.ini
[env]
framework = arduino
monitor_speed = 115200
board_build.filesystem = littlefs
extra_scripts =
pre:scripts/enable_ccache.py
pre:scripts/get_version.py
pre:scripts/web_embedder.py
post:scripts/collect_firmware.py
custom_max_leds = 2000
lib_deps =
esp32async/ESPAsyncWebServer @ 3.9.6
bblanchon/ArduinoJson @ 7.4.0
build_flags =
-DAPP_NAME=\"Hyperk\"
-DPIO_ENV_NAME=\"${PIOENV}\"
; -DDEBUG_LOG ; enable debug log to serial port
; ==================================================
; ESP32, S2 (Core 2.x, NeoPixelBus)
; ==================================================
[env:esp32]
platform = espressif32 @ 6.7.0
board = esp32dev
board_build.partitions = partitions_4mb.csv
board_build.filesystem = littlefs
board_build.flash_mode = dio
framework = arduino
lib_deps =
${env.lib_deps}
makuna/NeoPixelBus @ 2.8.4
build_flags =
${env.build_flags}
-DMAX_LEDS=${env.custom_max_leds}
-DUSE_NEOPIXELBUS
-std=gnu++17
build_unflags =
-std=gnu++11
[env:esp32-eth01]
extends = env:esp32
board = wt32-eth01
build_flags =
${env:esp32.build_flags}
-DWEBSERVER_USE_ETHERNET=1
-DETH_PHY_TYPE=ETH_PHY_LAN8720
-DETH_PHY_ADDR=1
-DETH_PHY_MDC=23
-DETH_PHY_MDIO=18
-DETH_CLK_MODE=ETH_CLOCK_GPIO0_IN
[env:esp32s2]
extends = env:esp32
board = esp32-s2-saola-1
; =========================================================
; ESP32-S3, C2, C3, C5, C6 (Core 3.x, Espressif LED driver)
; =========================================================
[env:esp32c3]
platform = https://github.com/pioarduino/platform-espressif32.git#55.03.38-1
board = esp32-c3-devkitm-1
board_build.partitions = partitions_4mb.csv
board_build.filesystem = littlefs
board_build.flash_mode = dio
framework = arduino
lib_deps =
${env.lib_deps}
;fastled/FastLED @ 3.10.3
led_strip=https://components.espressif.com/api/downloads/?object_type=component&object_id=6628801c-aa0f-4af3-9a34-c8edcc5d2aa3
extra_scripts =
${env.extra_scripts}
build_flags =
${env.build_flags}
-DMAX_LEDS=${env.custom_max_leds}
;-DUSE_FASTLED
;-DFASTLED_RMT_MAX_CHANNELS=1
-DUSE_ESPRESSIF_LED_STRIP
-I.pio/libdeps/$PIOENV/led_strip/include
-I.pio/libdeps/$PIOENV/led_strip/src
-I.pio/libdeps/$PIOENV/led_strip/interface
;-DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1
[env:esp32s3]
extends = env:esp32c3
board = esp32-s3-devkitc-1
[env:esp32c6]
extends = env:esp32c3
board = esp32-c6-devkitc-1
[env:esp32c2]
extends = env:esp32c3
board = esp32-c2-devkitm-1
build_flags =
${env:esp32c3.build_flags}
-DRMT_CLK_SRC_DEFAULT=0
[env:esp32c5]
extends = env:esp32c3
board = esp32-c5-devkitc-1
; ==================================================
; ESP8266
; ==================================================
[env:esp8266]
platform = espressif8266 @ 4.2.1
board = nodemcuv2
board_build.filesystem = littlefs
board_build.ldscript = eagle.flash.4m1m.ld
lib_deps =
${env.lib_deps}
makuna/NeoPixelBus @ 2.8.4
build_flags =
${env.build_flags}
-DARDUINO_ARCH_ESP8266
-DUSE_NEOPIXELBUS
-DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-DMAX_LEDS=1200
; ==================================================
; RP2040 (Raspberry Pi Pico W)
; ==================================================
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#v1.4.0-gcc14-arduinopico460
board = rpipicow
board_build.core = earlephilhower
board_build.filesystem_size = 0.5m
lib_deps =
${env.lib_deps}
makuna/NeoPixelBus @ 2.8.4
build_flags =
${env.build_flags}
-DPICO_STACK_SIZE=8192
-DUSE_NEOPIXELBUS
-DMAX_LEDS=${env.custom_max_leds}
; ==================================================
; RP2350 (Raspberry Pi Pico 2 W)
; ==================================================
[env:pico2]
extends = env:pico
board = rpipico2w