This repository was archived by the owner on Feb 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
130 lines (119 loc) · 3.3 KB
/
platformio.ini
File metadata and controls
130 lines (119 loc) · 3.3 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
; 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
[env]
custom_firmware_version = 0.10.4
build_flags =
-D ARDUINOJSON_USE_LONG_LONG=1
-D _TASK_STATUS_REQUEST
-D _TASK_TIMEOUT
-D _TASK_OO_CALLBACKS
-D _TASK_TIMECRITICAL
-D _TASK_WDT_IDS
-D _TASK_DEBUG
-D _TASK_EXPOSE_CHAIN
lib_deps =
TaskScheduler@^3.7
ArduinoJson@^6.21.3
WebSockets@^2.4.1
git+https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
board_build.filesystem = littlefs
build_unflags = -fno-rtti
monitor_speed = 115200
upload_speed = 921600
extra_scripts = pre:insert_firmware_version.py
[dbg]
; build_type = debug
build_flags =
-D ENABLE_TRACE
; -D AC_DEBUG
[esp32]
build_flags =
-D JSON_PAYLOAD_SIZE=2048
[esp8266]
lib_deps =
bblanchon/StreamUtils@~1.7.0
build_flags =
-D JSON_PAYLOAD_SIZE=1024
-D MINIMAL_BUILD
[env:esp32doit-devkit-v1]
custom_firmware_name = ima_mainline
platform = espressif32@6.5.0
; Bug in FSImpl.h introduced in 2.0.6. Resolved in 3.0.0-alpha3
; https://github.com/espressif/arduino-esp32/issues/7585#issuecomment-1894210320
platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32#2.0.5
board = esp32doit-devkit-v1
board_build.partitions = min_spiffs.csv
framework = arduino
lib_deps =
${env.lib_deps}
DallasTemperature@^3.11.0
claws/BH1750@^1.1.4
robtillaart/Max44009@^0.5.2
SparkFun BME280@^2.0.1
Adafruit NeoPixel@^1.10.5
git+https://github.com/InamataCo/ezo-i2c-sensors.git#v3
build_flags =
${env.build_flags}
${esp32.build_flags}
build_unflags = ${env.build_unflags}
monitor_speed = ${env.monitor_speed}
upload_speed = ${env.upload_speed}
extra_scripts = ${env.extra_scripts}
[env:esp32doit-devkit-v1-dbg]
custom_firmware_name = ima_mainline_dbg
extends = env:esp32doit-devkit-v1
build_flags =
${env:esp32doit-devkit-v1.build_flags}
${dbg.build_flags}
[env:esp32-s3-devkitc-1]
custom_firmware_name = ima_mainline_esp32_s3
extends = env:esp32doit-devkit-v1
board = esp32-s3-devkitc-1
; Athom 16A EU V2 Power Monitoring Plug (PG01V2-EU16A-TAS)
[env:athom-plug-v2]
custom_firmware_name = ima_minimal
platform = espressif8266
framework = arduino
board = esp8285
board_build.ldscript = "eagle.flash.2m.ld"
upload_resetmethod = nodemcu
lib_deps =
${env.lib_deps}
${esp8266.lib_deps}
build_flags =
${env.build_flags}
${esp8266.build_flags}
-D ATHOM_PLUG_V2
monitor_filters = esp8266_exception_decoder, default
build_unflags = ${env.build_unflags}
monitor_speed = ${env.monitor_speed}
upload_speed = ${env.upload_speed}
extra_scripts = ${env.extra_scripts}
[env:athom-plug-v2-dbg]
custom_firmware_name = ima_minimal_dbg
extends = env:athom-plug-v2
build_flags =
${env:athom-plug-v2.build_flags}
${dbg.build_flags}
[env:esp8266]
custom_firmware_name = ima_minimal
platform = espressif8266
framework = arduino
board = nodemcuv2
lib_deps =
${env.lib_deps}
${esp8266.lib_deps}
build_flags =
${env.build_flags}
${esp8266.build_flags}
build_unflags = ${env.build_unflags}
monitor_speed = ${env.monitor_speed}
upload_speed = ${env.upload_speed}
extra_scripts = ${env.extra_scripts}