forked from skippermeister/OpenDTU-OnBattery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
113 lines (103 loc) · 4.14 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
; 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 = my_very_special_board
;default_envs = marcels_board
;default_envs = opendtufusionv2_meanwell
;default_envs = opendtufusionv2_huawei
default_envs = generic_esp32s3_16mb_psram_usb_meanwell
;default_envs = generic_esp32s3_16mb_psram_usb_huawei
;default_envs = generic_esp32s3_meanwell
;default_envs = generic_esp32s3_huawei
;default_envs = generic_esp32s3_usb_meanwell
;default_envs = generic_esp32s3_usb_huawei
;default_envs = generic_esp32_4mb_no_ota_meanwell
;default_envs = generic_esp32_4mb_no_ota_huawei
extra_configs =
platformio_meanwell.ini
platformio_huawei.ini
platformio_override.ini
[env]
; Make sure to NOT add any spaces in the custom_ci_action property
; (also the position in the file is important)
; custom_ci_action = generic_esp32_4mb_meanwell
; custom_ci_action = generic_esp32_4mb_no_ota_meanwell
; custom_ci_action = generic_esp32_8mb_meanwell
; custom_ci_action = generic_esp32_16mb_psram_meanwell
; custom_ci_action = generic_esp32c3_meanwell
; custom_ci_action = generic_esp32c3_usb_meanwell
; custom_ci_action = generic_esp32s3_meanwell
; custom_ci_action = generic_esp32s3_usb_meanwell
; custom_ci_action = olimex_esp32_poe_meanwell
; custom_ci_action = olimex_esp32_evb_meanwell
; custom_ci_action = esp_s3_12k_kit_meanwell
; custom_ci_action = d1_mini_esp32_meanwell
; custom_ci_action = wt32_eth01_meanwell
; custom_ci_action = lolin32_lite_meanwell
; custom_ci_action = lolin_s2_mini_meanwell
; custom_ci_action = opendtufusionv1_meanwell
; custom_ci_action = opendtufusionv2_meanwell
; custom_ci_action = my_very_special_board
custom_ci_action = my_very_special_board,generic_esp32_4mb_no_ota_meanwell,generic_esp32_4mb_no_ota_huawei,generic_esp32_8mb_meanwell,generic_esp32_8mb_huawei,generic_esp32s3_meanwell,generic_esp32s3_huawei,generic_esp32s3_usb_meanwell,generic_esp32s3_16mb_psram_usb_meanwell,generic_esp32s3_16mb_psram_usb_huawei,generic_esp32s3_usb_huawei,opendtufusionv2_meanwell,opendtufusionv2_huawei
framework = arduino
platform = [email protected]
platform_packages =
platformio/tool-mklittlefs
build_flags =
-DPIOENV=\"$PIOENV\"
-D_TASK_STD_FUNCTION=1
-D_TASK_THREAD_SAFE=1
-DCONFIG_ASYNC_TCP_EVENT_QUEUE_SIZE=128
-DCONFIG_ASYNC_TCP_QUEUE_SIZE=128
-DEMC_TASK_STACK_SIZE=6400
-DINT32U=uint32_t
-DINT8U=uint8_t
-Wall -Wextra -Wunused -Wmisleading-indentation -Wduplicated-cond -Wlogical-op -Wnull-dereference
; Have to remove -Werror because of
; https://github.com/espressif/arduino-esp32/issues/9044 and
; https://github.com/espressif/arduino-esp32/issues/9045
; -Werror
-std=c++17
-std=gnu++17
build_unflags =
-std=gnu++11
lib_deps =
mathieucarbou/ESPAsyncWebServer @ 3.3.20
bblanchon/ArduinoJson @ 7.2.0
https://github.com/bertmelis/espMqttClient.git#v1.7.0
nrf24/RF24 @ 1.4.10
olikraus/U8g2 @ 2.36.2
buelowp/sunset @ ^1.1.7
arkhipenko/TaskScheduler @ 3.8.5
; https://github.com/coryjfowler/MCP_CAN_lib
; plerup/EspSoftwareSerial @ ^8.2.0
https://github.com/emelianov/modbus-esp8266#master
extra_scripts =
pre:pio-scripts/compile_webapp.py
pre:pio-scripts/auto_firmware_version.py
pre:pio-scripts/patch_apply.py
post:pio-scripts/create_factory_bin.py
post:pio-scripts/gzip-firmware.py
board_build.partitions = partitions_custom_8mb.csv
board_build.filesystem = littlefs
board_build.embed_files =
webapp_dist/index.html.gz
webapp_dist/zones.json.gz
webapp_dist/favicon.ico
webapp_dist/favicon.png
webapp_dist/js/app.js.gz
webapp_dist/site.webmanifest
custom_patches =
monitor_filters = esp32_exception_decoder, time, log2file, colorize
monitor_speed = 115200
upload_protocol = esptool
; Specify port in platformio_override.ini. Comment out (add ; in front of line) to use auto detection.
; monitor_port = COM4
; upload_port = COM4