Repository navigation
Expand file tree
/
Copy pathplatformio.ini
More file actions
65 lines (58 loc) · 1.56 KB
/
Copy pathplatformio.ini
File metadata and controls
65 lines (58 loc) · 1.56 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
; 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]
description = Firmware for ESP82xx/ESP32 for Shelly Emulator
[env]
framework = arduino
monitor_speed = 115200
lib_deps =
knolleary/PubSubClient@^2.8
bblanchon/ArduinoJson@^7.3.0
tzapu/WiFiManager@2.0.17
esp32async/ESPAsyncWebServer@^3.10.2
emelianov/modbus-esp8266@^4.1.0
olliiiver/SML Parser@^0.29
extra_scripts = pre:generate_chart_header.py
pre:patch_wifimanager.py
build_flags = !python get_version.py
-DWM_NODEBUG
[env:esp32]
platform = espressif32
board = esp32dev
board_build.partitions = min_spiffs.csv
build_flags =
${env.build_flags}
-DNOWIFIMANAGERASYNC
[env:esp8266]
platform = espressif8266
board = nodemcuv2
build_flags =
${env.build_flags}
lib_deps = ${env.lib_deps}
vshymanskyy/Preferences@^2.1.0
[env:esp32-s3]
platform = espressif32
board = esp32-s3-devkitc-1
build_flags =
${env.build_flags}
-DNOWIFIMANAGERASYNC
-DARDUINO_USB_CDC_ON_BOOT=1
board_build.partitions = min_spiffs.csv
board_upload.flash_size = 4MB
[env:esp32-c3]
platform = espressif32
board = esp32-c3-devkitm-1
build_flags =
${env.build_flags}
-DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_MODE=1
-DNOWIFIMANAGERASYNC
board_build.partitions = min_spiffs.csv
board_upload.flash_size = 4MB